O'Reilly logo

Laravel Application Development Cookbook by Terry Matula

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. Create a route in our routes.php file to hold our registration form:
    Route::get('registration', function()
    {
        return View::make('registration');
    });
  2. Create a registration form by creating a new file in app/views named as registration.php:
    <!DOCTYPE html> <html> <head> <title>Laravel Authentication - Registration</title> <meta charset="utf-8"> </head> <body> <h2>Laravel Authentication ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required