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