File tree Expand file tree Collapse file tree 2 files changed +33
-29
lines changed Expand file tree Collapse file tree 2 files changed +33
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ use Illuminate \Foundation \Inspiring ;
4
+ use Illuminate \Support \Facades \Artisan ;
5
+ use Illuminate \Support \Facades \Schedule ;
6
+
7
+ /*
8
+ |--------------------------------------------------------------------------
9
+ | Console Commands
10
+ |--------------------------------------------------------------------------
11
+ |
12
+ | This file is where you may define all of your Closure based console
13
+ | commands. Each Closure is bound to a command instance allowing a
14
+ | simple approach to interacting with each command's IO methods.
15
+ |
16
+ */
17
+
18
+ Artisan::command ('inspire ' , function () {
19
+ $ this ->comment (Inspiring::quote ());
20
+ })->purpose ('Display an inspiring quote ' );
21
+
22
+ /*
23
+ |--------------------------------------------------------------------------
24
+ | Console Schedule
25
+ |--------------------------------------------------------------------------
26
+ |
27
+ | Below you may define your scheduled tasks, including console commands
28
+ | or system commands. These tasks will be run automatically when due
29
+ | using Laravel's built-in "schedule:run" Artisan console command.
30
+ |
31
+ */
32
+
33
+ Schedule::command ('inspire ' )->hourly ();
You can’t perform that action at this time.
0 commit comments