$user_id])->findOrEmpty(); if ($user->isEmpty()) { $user = self::create([ 'user_id' => $user_id ]); } return $user; } }