Answers for "laravel how to get auth user"

PHP
5

get logged user id laravel

$id = Auth::user()->id;print_r($id);
Posted by: Guest on March-25-2020
2

install laravel auth

1 - composer create-project laravel/laravel laravel8 8.0
2 - composer require laravel/ui
3 - php artisan ui vue --auth
4 - npm install
5 - npm run dev
6 - php artisan ui:auth
  
7 = > url example.com/login
Posted by: Guest on June-18-2021

Browse Popular Code Answers by Language