- upgrade laravel 5.8 to 6.0

- change Input facade with Request facade
- route parameter must exactly match
- php minimum version ^7.2
- start cron job for deleting expired cache files
This commit is contained in:
Arno Kaimbacher 2020-05-13 15:16:15 +02:00
parent 214b118199
commit e89df8ec2a
5 changed files with 347 additions and 284 deletions

View file

@ -14,7 +14,7 @@ class Kernel extends ConsoleKernel
protected $commands = [
'App\Console\Commands\Inspire',
'App\Console\Commands\DatasetState',
'App\Console\Commands\SolrIndexBuilder'
'App\Console\Commands\SolrIndexBuilder',
];
/**
@ -25,19 +25,20 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
//$schedule->command('inspire')->hourly();
// $schedule->command('inspire')
// ->everyMinute()
// ->appendOutputTo(storage_path('logs/inspire.log'));
// ->hourly()
// ->withoutOverlapping()
// ->appendOutputTo(storage_path('logs/inspire.log'));
$schedule->command('state:dataset');
//->appendOutputTo(storage_path('logs/inspire.log'));
//->everyThirtyMinutes();
// $schedule->command('state:dataset');
// // ->appendOutputTo(storage_path('logs/inspire.log'));
$schedule->command('cache:clear-expired')
->twiceDaily(1, 16)
->appendOutputTo(storage_path('logs/cacheClear.log'));
}
/**
/**
* Register the Closure based commands for the application.
*
* @return void