Skip to content
Experts PHP
  • Web Tutorial Exercise
  • LARAVEL FRAMEWORK TUTORIAL
  • PYTHON TUTORIAL
  • LARAVEL 5.8
  • PHP TUTORIAL
  • HTML TUTORIAL
  • Mysql
  • C PROGRAM
  • PHP PROGRAM
Posted on March 14, 2019March 15, 2019 by jyoti

Create Authentication Login and Registration in Laravel 5.8

“Create Authentication Login and Registration in Laravel 5.8,Laravel 5.8 Login and Register Create using Auth Command”

Hello friends, today I will tell you through this tutorial that you can create a login or registration form by using auth command in laravel 5.8. So I will tell you step to step through this tutorial.

1.install laravel 5.8 project
2.Create User Model
3.Create Databse with users table
4.auth command run
5.Conclusion

 

1.install laravel 5.8 project

 

The first step is to install laravel 5.8. To install laravel 5.8 we first have to install the composer. If you have already installed the composer in your system or laptop. There is no need to install a composer.

composer create-project --prefer-dist laravel/laravel blog

 

2.Create User Model

 

Then after that we will create a database table model. To create a model we can create a model by using the laravel command. The systax to create the model is given below.

php artisan make:model User

App/User.php

<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'first_name', 'email', 'password', 'password_confirmation',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
}

 

3.Create Databse with users table

 

CREATE TABLE `users` (
`id` int(100) NOT NULL,
`first_name` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`remember_token` varchar(100) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=332;COMMIT;

 

4.auth command run

 

Now we will run the command auth by cmd. In laravel 5.8, auth command is run, the command is given below.

php artisan make:auth

I would like to tell you that after running an auth command, a auth name folder will be created in your views folder. In this you will get the login file and the blade file of register.

You can open these files via this url.

http://localhost/blog/public/login
http://localhost/blog/public/register

Login and Register Form show via Image

Login and Register form Laravel 5.8

 

5.Conclusion

Laravel 5.8Laravel 5.8 Login and Register Create using Auth Command

Post navigation

Laravel 5.8 Multiple Images File Upload
Laravel 5.8 Image File Upload

Our Tools

  • GST Calculator
  • Percentage Calculator
  • Add Fraction Calculator
  • Word Counter Calculator
  • Square Rool Calculator
  • Prime Number Calculator
  • Area of Circle Calculator
  • Hexa to Decimal Converter
  • Multiplication Calculator

Recent Posts

  • VSCO Downloader February 3, 2023
  • 123rf downloader Without Watermark February 1, 2023
  • Resso Downloader January 30, 2023
  • Vecteezy Video Downloader January 9, 2023
  • Izlesene Video Downloader December 30, 2022
  • Pond5 Video, Images, PSD & illustration Downloader December 28, 2022
  • How to Download Rumble Videos? December 28, 2022
  • Helo Video Downloader December 26, 2022
  • Imageshack HD Image Downloader December 24, 2022
  • Pikbest Video & Photo Downloader December 14, 2022

Categories

  • angularjs (10)
  • c programming (2)
  • Codeigniter (3)
  • HTML (35)
  • Java Problems (4)
  • Javascript & Jquery Problems (74)
  • jquery (14)
  • Laravel 5.8 (15)
  • Laravel 6.0 (9)
  • LARAVEL FRAMEWORK (53)
  • PHP (68)
  • PHP PROBLEMS (82)
  • php program (18)
  • python (24)
  • swift (1)
  • Tools (28)
  • XML (1)

Calculators & Code Minifier Tools

GST Calculator

Square(√) Root Calculator

Prime Numbers Calculator

Area of Circle Calculator

Percentage(%) Calculator

Hexa to Decimal Converter

Binary to Decimal Converter

HTML Minify Tools

Remove Blank Lines Minify Tools

Word Counter

Multiplication Calculator

Learn Programming Blog, Tutorials, PHP, MySQL, JavaScript & JQuery, Ajax, WordPress, Laravel, Web Development, Many Tools and Demos with Experts PHP.powered by Experts PHP

About us|Terms and Condition