Cómo verificar si la variable es resgister en Laravel
if(!isset($user_id)){
throw new \Exception('your message');
}
Mohamad
if(!isset($user_id)){
throw new \Exception('your message');
}