Thursday, November 3, 2016

Laravel 5.3 default authentication

In this tutorial i'll give  basic idea of authentication system provided by laravel 5.3. You can find more details about authentication system in this video tutorial.

Authentication system is one of the core module of an web application. It will take a lot of time to develop an authentication system without security flaws.

Laravel 5.3 provides quick and easy to scaffold all of the routes and views you need for authentication.

Use following command  and laravel will setup everything for you.

php artisan make:auth
and make sure you ran following command which will required for registering new users and reset password.

php artisan migrate
Now we have everything running. If we browse our web application we'll see two link. One is Register and another one is Login .


Now if you want to create new user , click Register and you'll see following page:

Provide Necessary details and you will be redirect to user dashboard.


Laravel also generate default login page for you.


you can find all the routes related to laravel authentication system in auth() function on following directory:
vendor/laravel/framework/src/illuminate/Routing/Router.php 

1 comment:

  1. Hey Nice write up, keep Writing, Do you know you can also post your laravel related articles
    on http://www.laravelinterviewquestions.com/submit-an-article too.
    Thanks !

    ReplyDelete