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