Laravel 5 Cron Jobs Scheduling To Making Automation Easier (Laravel Tutorials)- (Hindi)
How to setup Laravel Cron Jobs Scheduling in cpanel to Make Automation Easier for Laravel emailing, Laravel cleaning the database and generating information in laravel 5?
#laraveltutorials
#laravel
#laravellearning
? Follow us on our Facebook page
https://www.facebook.com/powerofknowledgein/
? Join our facebook group to get more depth in learning of different technologies
https://www.facebook.com/groups/powerofknowledge/
? Subscribe To Our Channel
https://www.youtube.com/c/PowerofKnowledgein?sub_confirmation=1
? For Suggestions and Help, direct message us on Facebook Messenger
m.me/powerofknowledgein
Instructions for Cron Job Scheduling in Laravel 5
_________________________________________________
When working on online server for laravel 5, almost always want to do a periodic task on the server, such as Laravel 5 emailing , cleaning the database for laravel 5 and generating information. To take advantage of these jobs, I take advantage of Laravel 5 cron jobs scheduling. Laravel 5 Cron is the task scheduler mechanism of Unix/Linux operating systems. Laravel Cron schedules tasks based on a pre-specified time period like numbers of days, weeks, months, or even specific date and time.
Laravel provides an easy way for task scheduling. Laravel’s ‘Command Scheduler’ allows you to easily define the schedule of the commands within Laravel itself. When using the Laravel scheduler, only one Cron entry is needed on the server.
Step 1: Installing Laravel Application on the server
Install the Larvel on the server by using the install application tool or manually.
Step 2: Create Laravel Custom Artisan Command
open the root folder of your laravel application using the terminal. Type the following laravel command to create the laravel custom artisan command:
"php artisan make:command SendAlerts". This command will create a new laravel command class in the app/Console/Commands directory.
Step 3: Register the Laravel command
For registering the command, go to app/console/kernal.php
Step 4: Laravel Scheduling Artisan Commands
The Laravel scheduler executes the commands (in this case only) on an hourly basis. To make it happen, I will set the Laravel schedule function in the kernal.php file.
Step 5: Activate Laravel Cron Jobs Scheduler
Now to activate the scheduled jobs, run the cron command. Go to your application from the Applications tab, and then to the Cron Jobs Manager.
Step 6: In the command tab of cron job manager, place the following command:
php -d register_argc_argv=on /project-pathl/artisan schedule:run 1 (double angle brackets here) /dev/null 2 (single angle bracket here) &1
Created By Shilpa Rajpoot
Видео Laravel 5 Cron Jobs Scheduling To Making Automation Easier (Laravel Tutorials)- (Hindi) автора Освоение Vue: Практика и Примеры
Видео Laravel 5 Cron Jobs Scheduling To Making Automation Easier (Laravel Tutorials)- (Hindi) автора Освоение Vue: Практика и Примеры
Информация
28 ноября 2023 г. 18:48:29
00:02:02
Похожие видео