bagaimana memeriksa apakah variabel resgister di laravel

        if(!isset($user_id)){
            throw new \Exception('your message');
        }
Mohamad