public function authorize() { $id = $this->route('schedule'); return Schedule::where('id', $id)->exists(); }