Custom Authentication with validation in laravel
Justlaravel wrote a new tutorial about custom authentication in Laravel.
If you don't want to use the Laravel scaffold, this is a tutorial that you may need.
Custom Authentication in Laravel
As routing and pagination is very simple in laravel, authentication is not much different, it is very simple too, everything is configured out of the box.
By default, laravel comes with 2 authentication controllers: Auth Controller and Password Controller.
Auth Controller, handles new registrations and authentication, Password Controller, manages forgotten passwords.
Default routes for authentication are,
// Authentication routes... Route::get('auth/login', 'Auth\AuthController@getLogin'); Route::post('auth/login', 'Auth\AuthController@postLogin'); Route::get('auth/logout', 'Auth\AuthController@getLogout'); // Registration routes... Route::get('auth/register', 'Auth\AuthController@getRegister'); Route::post('auth/register', 'Auth\AuthController@postRegister');
Link:
This post is submitted by our members. Submit a new post.
Tags: Laravel 5.2 Laravel 5 Laravel 5.1 Tips Tricks Beginner Tutorials