laravel ดู auth
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
laravel auth user_id
$userId = Auth::id();
laravel ทำให้ 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 ได้ auth ของผู้ใช้หมายเลข
// 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
วิธีที่จะหาชื่อของล็อกอินของผู้ใช้ใน laravel
Auth::user()->name