Skip to content

Commit 025c5f8

Browse files
authored
docs: update Schedule List information
1 parent ae7c053 commit 025c5f8

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

task-scheduling.md

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,28 @@ description: Scheduler allows you to fluently and expressively define your comma
55

66
# Task Scheduling
77

8-
Laravel Zero ships with the [Task Scheduling](https://laravel.com/docs/5.7/scheduling) system of
8+
Laravel Zero ships with the [Task Scheduling](https://laravel.com/docs/scheduling) system of
99
Laravel. To use the scheduler, you need to periodically execute your application, and for that you
1010
need to add the following Cron entry to your server:
11+
1112
```
1213
* * * * * php /path-to-your-project/your-app-name schedule:run >> /dev/null 2>&1
1314
```
1415

1516
You may define all of your scheduled tasks in the `schedule` method of the Artisan command:
17+
1618
```php
17-
public function schedule(Schedule $schedule)
18-
{
19-
$schedule->command(static::class)->everyMinute();
20-
}
19+
public function schedule(Schedule $schedule)
20+
{
21+
$schedule->command(static::class)->everyMinute();
22+
}
2123
```
2224

2325
<a name="viewing-scheduled-tasks"></a>
2426
### Viewing scheduled tasks
2527

26-
The Schedule List component can be used to view a list of tasks that are scheduled in your application.
27-
28-
Using the `app:install` Artisan command you can install the `schedule-list` component:
28+
The `schedule:list` command can be used to view a list of tasks that are scheduled in your application as follows:
2929

30-
```bash
31-
php <your-app-name> app:install schedule-list
30+
```shell
31+
php <your-app-name> schedule:list
3232
```
33-
34-
After installation, the `schedule:list` command will be available to use. The binary name will be set
35-
by default in the `config/schedule-list.php` file, but you may need to update this to make sure the
36-
command outputs correctly. Note that Unix systems wrap the command parameters in single quotes,
37-
whereas Windows wraps them in double quotes so both will be needed in the configuration file.
38-
39-
> Behind the scenes, the `schedule-list` command uses the
40-
[`hmazter/laravel-schedule-list`](https://github.com/hmazter/laravel-schedule-list)
41-
package. You can find more details on how to use the command and configuration there.

0 commit comments

Comments
 (0)