Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Alizey's avatar

laravel 5 custom login and registration

How can i make custom login and registration for laravel 5. Bascially i used Defualt Login and Registration functionality of Laravel for my backend. Now i want to use login and registration functionality for My frontent How can i use that ? i want to make the Url like http://example.com/auth/register

0 likes
2 replies
RachidLaasri's avatar

Routes :

get('auth/register', 'AuthController@register');

Inside your AuthController class, create a method named register, and just use :

if (Auth::attempt(['email' => $email, 'password' => $password])) {
   // Authentication passed...
   return redirect()->intended('dashboard');
}

http://laravel.com/docs/5.1/authentication

1 like

Please or to participate in this conversation.