parameter('contact'); if (Auth::guest() || is_null($contact)) { return null; } return $this->where('account_id', Auth::user()->account_id) ->where('contact_id', $contact->id) ->where($this->getRouteKeyName(), $value) ->firstOrFail(); } }