Making your authentication pages

Laravel 5.2 has made this even easier. You can read https://laravel.com/docs/5.2/authentication#authentication-quickstart and you will have all our files, routes and so on. We are just going to make sure it fits in well with our theme and shows the errors as expected.

How to do it…

  1. Following the instructions in the Laravel documentation, we have to run:
    >php artisan make:auth
    
  2. Then it will output all this info; these are the files we are going to start checking on:
    How to do it…
  3. Then we go to our resources/views/auth/login.blade.php Blade file and change the @extends('layouts.app') on the top to "@extends('layout')"—the one we made. ...

Get Laravel 5.x Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.