/** * @return \Illuminate\Routing\Route|null|string */ public function ingnoreId() { // dd('am in request ingnoreId'); $id = $this->route('drug'); $name = $this->input('name'); return Drug::where(compact('id', 'name'))->exists() ? $id : ''; }