Laravel Simple Auth
A Simple method to create laravel authentication for an existing laravel project.
Indroduction
Why I created this kind of package? Well, Suppose sometimes we forget to add --auth
into a new project creation command, we will have to run below three commands to make the laravel default authentication.
composer require laravel/ui
php artisan ui bootstrap --auth
npm install && npm run dev
I know it's really annoying
php artisan make:auth
So in 6.0 version they removed that command from laravel. BUT now what is going with this package? Once you installed laravel-simple-auth that missed artisan command will be inside your project. It's pretty cool, nah?
Usage
Okay, let's see how can we started,
-
Install the package by running this command.
composer require laravel-simple-auth
-
Then run the old command which is love my most developers.
php artisan make:auth
There is another cool option here, You can even pass the ui type like below.
php artisan make:auth vue
php artisan make:auth react
Important note: If you run only php artisan make:auth command without passing the UI type. you will get the Bootstrap UI by default.
License
Copyright © Dasun Tharanga
Laravel Simple Auth is open-sourced package licensed under the MIT license.