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