How to make a login in Laravel with another login view

Asked

Viewed 37 times

0

I am working as an already populated database, it already has a user and a default admin password.

What I want is to authenticate this admin with a login view that I made myself.

I’m lost in the part I’ve already created the "auth" don’t know how to proceed.

Those were the routes he spawned for me.

Auth::routes();
Route::get('/home', 'HomeController@index')->name('home');`
  • You have open questions that don’t interact, it gets complicated someone answer

1 answer

1


You can create a method showLoginForm in his LoginController, return your login form.

Auth Logincontroller.php

public function showLoginForm()
{
    return view('login.meuFormDeLogin');
}
  • Thank you Peter solved my problem!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.