Skip to content

Instantly share code, notes, and snippets.

@adevesa
Created July 8, 2021 02:12
Show Gist options
  • Save adevesa/2017269b3932086be1ec7cfa433a159e to your computer and use it in GitHub Desktop.
Save adevesa/2017269b3932086be1ec7cfa433a159e to your computer and use it in GitHub Desktop.
Kernel.php
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('avaliable-appointment')->hourly();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment