From ef7990dfad4db4c822fd78e21dcfada20b2cdc29 Mon Sep 17 00:00:00 2001 From: Bradley Okeno Date: Sun, 18 Aug 2024 23:11:53 +0300 Subject: [PATCH 1/3] Update README.md Task scheduling in laravel 11 --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index d1bfb5d..6332e5a 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,16 @@ protected function schedule(Schedule $schedule) $schedule->command('otp:clean')->daily(); } ``` +In laravel 11 the `app/Console/Kernel.php` was removed, to schedule a task, add this to the `routes/console.php` +```php +daily(); +``` +check if your task has been added to schedule using command: +`php artisan schedule:list` + ## Contribution From a1c6c367fa0b764dbf061050ec1ab11679816fd0 Mon Sep 17 00:00:00 2001 From: Bradley Okeno Date: Sun, 22 Dec 2024 15:58:39 +0300 Subject: [PATCH 2/3] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6332e5a..8ae6314 100644 --- a/README.md +++ b/README.md @@ -135,14 +135,17 @@ protected function schedule(Schedule $schedule) $schedule->command('otp:clean')->daily(); } ``` -In laravel 11 the `app/Console/Kernel.php` was removed, to schedule a task, add this to the `routes/console.php` + +In Laravel 11, the `app/Console/Kernel.php` file has been removed. To schedule a task, you can now add it directly to `routes/console.php` as follows: ```php daily(); ``` -check if your task has been added to schedule using command: + +You can check if your task has been added to the schedule by using the following artisan command: `php artisan schedule:list` From 8e67bdeb98586cb44b7e6aca2b8e5ffea26e564d Mon Sep 17 00:00:00 2001 From: Bradley Okeno Date: Sun, 22 Dec 2024 16:03:04 +0300 Subject: [PATCH 3/3] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added requested changes to the readme 👍 --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ae6314..929c602 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,9 @@ Schedule::command('otp:clean')->daily(); ``` You can check if your task has been added to the schedule by using the following artisan command: -`php artisan schedule:list` +```bash +php artisan schedule:list +``` ## Contribution