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