laravel onay auth
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
laravel auth kullanıcı_idi
$userId = Auth::id();
laravel auth yapmak
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 get auth kullanıcı kimliği
// 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'de oturum açan kullanıcının adını nasıl bulabilirim
Auth::user()->name