How to make Login and Register System using Auth Command in Laravel 5.8
Laravel Auth Command | Login and Register using Auth Command
In this post, you will learn how to make login and registration system in laravel 5.8 version with the auth command called php artisan make:auth as follows:
Step 1: Install your Laravel by issuing the Composer with the command called create-project command in your terminal:
Step 2: Setup your database (DB) and set the credentials in your environment file (.env) in your installed laravel application.
Step 3: Go to your application and open the folder by following: App / Providers / AppServiceProvider.php, open this file and add the below code, to set the defaultStringLength to skip the Error called: Specified key was too long error.
Step 4: Now, lets set the login and registration system using laravel auth command by below code:
Step 5: After successfull installation of laravel auth command, then we need to migrate the laravel default table's (Which Already Exists in database folder). So, now lets migrate the tables by following below command:
Step 6: Now, everything is perfect, so lets run the artisan serve command to get registered and login to it.
The Url to Login: http://localhost:8000/login
The Url to Register: http://localhost:8000/register