diff --git a/src/UserStore.php b/src/UserStore.php index f824ef6..fd6e9d5 100644 --- a/src/UserStore.php +++ b/src/UserStore.php @@ -22,6 +22,6 @@ public function store($user) public function findByIdentity($identity) { - return $identity->belongsTo($this->model, 'user_id')->first(); + return $identity->belongsTo($this->model, 'user_id')->firstOrFail(); } }