How To Setup Laravel Login Authentication In Simple And Easy Steps

Submitted by azazqadir - 10 months ago

An important feature of this authentication implementation is that it filters out and generates an error whenever the authentication credentials (for example, email and/or password) are incorrectly entered by the user(s). Source: https://www.cloudways.com/blog/laravel-login-authentication/

Route::get('login', array(
    'uses' => 'MainController@showLogin'
));
 
// route to process the form
 
Route::post('login', array(
	'uses' => 'MainController@doLogin'
));
Route::get('logout', array(
	'uses' => 'MainController@doLogout'
));
Route::get('/',
function ()
	{
	return view('welcome');
	});

Ads cover the costs of maintaining Laravel-tricks

comments powered by Disqus

Ads cover the costs of maintaining Laravel-tricks