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
Latest PostsHow to create a database error page in laravel How to disable register route and other Auth route in laravel 5.7 + How to create database seeder in Laravel Automatically Generate Sitemap in Laravel How to Ban | Block | Disable and unBan user for login in laravel How to make Multiple Login System using auth in Laravel 5.8 (User + Admin) with Middleware How to make Login and Register System using Auth Command in Laravel 5.8 How to connect database in laravel 5.8 How to install Laravel 5.8 and create a project in laravel 5.8
© Copyright - 2018 - 2021 | All rights reserved at Funda of Web IT