Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

no23

  • Loading branch information
r567tw committed Oct 7, 2019
1 parent 85ba735 commit 49f53d4e3f6b2b89883c905d7f55248a627c910c
Showing with 26 additions and 3 deletions.
  1. +8 −3 app/Console/Kernel.php
  2. +17 −0 inspire.log
  3. +1 −0 time.log
@@ -24,8 +24,13 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
$schedule->command('inspire')
->everyMinute()
->appendOutputTo('inspire.log');

$schedule->call(function () {
file_put_contents('time.log', \Carbon\Carbon::now());
})->everyMinute();
}

/**
@@ -35,7 +40,7 @@ protected function schedule(Schedule $schedule)
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
$this->load(__DIR__ . '/Commands');

require base_path('routes/console.php');
}
@@ -0,0 +1,17 @@
It always seems impossible until it is done. - Nelson Mandela
He who is contented is rich. - Laozi
He who is contented is rich. - Laozi
He who is contented is rich. - Laozi
It is quality rather than quantity that matters. - Lucius Annaeus Seneca
When there is no desire, all things are at peace. - Laozi
Simplicity is the ultimate sophistication. - Leonardo da Vinci
Simplicity is an acquired taste. - Katharine Gerould
Smile, breathe, and go slowly. - Thich Nhat Hanh
Very little is needed to make a happy life. - Marcus Antoninus
When there is no desire, all things are at peace. - Laozi
Genius is one percent inspiration and ninety-nine percent perspiration. - Thomas Edison
Simplicity is the ultimate sophistication. - Leonardo da Vinci
Genius is one percent inspiration and ninety-nine percent perspiration. - Thomas Edison
When there is no desire, all things are at peace. - Laozi
Act only according to that maxim whereby you can, at the same time, will that it should become a universal law. - Immanuel Kant
Well begun is half done. - Aristotle
@@ -0,0 +1 @@
2019-10-07 14:05:01

0 comments on commit 49f53d4

Please sign in to comment.
You can’t perform that action at this time.