Laravel Auth
// How to install Auth in laravel
// With Boothstrap
composer require laravel/ui --dev
php artisan ui bootstrap --auth
npm install && npm run dev
// With VUE
composer require laravel/ui --dev
php artisan ui vue --auth
npm install && npm run dev
//Run the bolow commands to install laravel ui package
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev
//laravel ui auth
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
//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
//laravel auth
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev
//laravel auth
//namespace
use Illuminate\Support\Facades\Auth;
0 comments:
Post a Comment
Thanks