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…
- Following the instructions in the Laravel documentation, we have to run:
>php artisan make:auth
- Then it will output all this info; these are the files we are going to start checking on:
- 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.Tip
Laravel
auth
scaffolding defaults to making alayouts
folder and adds anapp.blade.php
file there. This is a convention that makes a lot of sense and sticking to default Laravel conventions is ideal, so feel free to alter the recipe to leave things as theauth
command set them up as. This package...