test if a user is authenticated on custom guard laravel test code example
Example: how to check if there is an authenticated user laravel
if (Auth::check()) { // The user is logged in... }
if (Auth::check()) { // The user is logged in... }