In my Laravel app I have different auth for administrators and users. So I have separete views as well. I have placed auth views
folder inside admin
folder, so that the view path to my admin auth is now admin.auth.login
for example. Where can I change those paths so that I can use them for all the auth functions?
If you take a look at your app\Http\Controllers\Auth\LoginController.php
, you will see:
use AuthenticatesUsers;
It's a traits, you can find all the login related method over there in use Illuminate\Foundation\Auth\AuthenticatesUsers.php
.
There's a method in the trait which show the view as below:
public function showLoginForm()
{
return view('auth.login');
}
What you want to do is either:
showLoginForm
method.or
showLoginForm
in your LoginController.php
. See thisIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With