/** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) { /* $schedule->command('inspire') ->hourly(); */ $schedule->call(function () { Reservation::checkNeedToMail(); })->everyThirtyMinutes(); }
public function delete($id) { $result = Reservation::delete($id); return $result; }