Prepare a Laravel application for production
Comment the line in .gitignore file !/public/build Enter the command if you have any node module npm run build Enter if you have any file in storage php artisan storage:link
Comment the line in .gitignore file !/public/build Enter the command if you have any node module npm run build Enter if you have any file in storage php artisan storage:link
If your laravel application is running behind the Proxy Server or the Load-Balancer then you should follow these settings. Even, if the proxy server or Load-balancer receives https:// requests from global users and your app server receives http:// requests from the proxy or LB then you should follow these steps too. 2. You need to…
Let’s create a class file for Queue Job by entering the following command php artisan make:job SendOtpEmail To get the email data, just replace the construct method like below in SendOtpEmail job class file Write the email sending code in handle() method of SendOtpEmail job class file The class file is ready to receive the…
Follow these easy steps to create an Event Listener after user registration in Laravel 11. Create an Event class file php artisan make:event UserCreated Create a Listener class file php artisan make:listener SendWelcomeEmail –event=UserCreated Add following codes in User model file use App\Events\UserCreated; Add the following codes in User class of User model file Add…
The php artisan serve makes our life easy but what if you are running its app on the Apache web server? Laravel 11 is new, and it brings us many new features. You may face some errors so, please keep these solutions in mind. To write all logs sudo chown www-data:www-data storage/logs/ To store views…