For Laravel > 5.3 Add in .env file properties of the second connection (DB_HOST, DB_PORT, DB_DATABASE, DBUSERNAME, DB_PASSWORD) Add second
Month: December 2020
Laravel Console Command
Generate the command php artisan make:command command_name Call command php artisan command:command_name –options arguments Optionally, register An Command, add yourCommand
Laravel Job and Queue
This post shows the steps on how to run queue in database using background worker process. Useful tutorials: https://scotch.io/tutorials/why-laravel-queues-are-awesome https://laravel-news.com/laravel-jobs-and-queues-101