laravel auth guest helper code example
Example 1: laravel check auth
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
Example 2: laravel auth
// Laravel 5.x
php artisan make:auth
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
// Laravel 5.x
php artisan make:auth