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