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 

Related Posts:

  • Laravel 5.2 using queue to send email To sent email after desired number of second, first change the .env file as follow. First provide database credential set QUEUE_DRIVER=sync to QUEUE_DRIVER=database Normally , QUEUE_DRIVER=sync tries to sent email immedi… Read More
  • Laravel 5.2 Implicit model binding In Laravel 5.2 new feature called implicit model binding added. Which can be implement efficiently and in a very easy manner. Here how its done : In your routes.php file create a new route Route::get('user',function(){}); … Read More
  • Add Cron jobs to run scheduling jobs for Laravel Developer on Ubuntu I have faced a lot of problems to run schedule jobs in Laravel. I am using Ubuntu 14.04 and i spent a lot of time to make it work. Here i wrote down the basic procedure that i followed. First  To run scheduled job… Read More
  • Laravel 5.2 queuing Event listeners First , we need to create Event and to listen event, we also have to create listener. To do this , laravel provides us several ways. The easiest way to create event and corresponding listener we can use this command php ar… Read More
  • Create Your own command on Laravel 5.2 In Laravel application , when you try this command php artisan you would see lots of command for laravel application. So if you want to create your own command, laravel provide you very easy way to do this. Here is the … Read More

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