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