check if logged in user is admin laravel code example
Example: check if logged laravel
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}