Laravel Check Auth
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
Yellowed Yacare
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
use Illuminate\Support\Facades\Auth;
// Get the currently authenticated user's ID...
$id = Auth::id();
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev
Auth::user();
use Auth;
//find auth
function __construct()
{
$this->middleware('auth');
}
//end find auth