Laravel kontrola auth
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
laravel auth user_id
$userId = Auth::id();
laravel dělat auth
Laravel's laravel/ui package provides a quick way to scaffold all of the routes and views you need for authentication using a few simple commands:
composer require laravel/ui
php artisan ui vue --auth
laravel získat auth id uživatele
// Get the currently authenticated user's ID...
$id = Auth::id();
laravel auth
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev
jak najít jméno přihlašovacího uživatele v laravel
Auth::user()->name