chek for auth user in model in laravel code example
Example 1: how to check if there is an authenticated user laravel
if (Auth::check()) { // The user is logged in... }
Example 2: get user auth in laravel
Auth::user();
if (Auth::check()) { // The user is logged in... }
Auth::user();