Creating an authentication system
In this recipe, we'll be creating a simple authentication system. It can be used as it is or extended to include much more functionality.
Getting ready
We will be using the code created in the Setting up and configuring the Auth library recipe as the basis for our authentication system.
How to do it...
To finish this recipe, follow these steps:
Create a route in our
routes.php
file to hold our registration form:Route::get('registration', function() { return View::make('registration'); });
Create a registration form by creating a new file in
app/views
named asregistration.php
:<!DOCTYPE html> <html> <head> <title>Laravel Authentication - Registration</title> <meta charset="utf-8"> </head> <body> <h2>Laravel Authentication - Registration</h2> <?php $messages = $errors->all('<p style="color:red">:message</p>') ?> <?php foreach...