This will depend on the version of Laravel you are using.
Laravel 5.2
You need to add property $loginView in class AuthController.
Thus:
protected $loginView = 'nome_da_minha_view';
In the source code of trait called Illuminate\Foundation\Auth\AuthenticatesUsers, there is a method called showLoginForm, that’s written like this:
/**
* Show the application login form.
*
* @return \Illuminate\Http\Response
*/
public function showLoginForm()
{
$view = property_exists($this, 'loginView')
? $this->loginView : 'auth.authenticate';
if (view()->exists($view)) {
return view($view);
}
return view('auth.login');
}
note that if the property exists loginView in the current class (in this context it would be AuthController), the view used will be the one defined in this property, if the view also exists (according to the view()->exists().
Laravel 5.3 and 5.4
You need to simply overwrite the called method showLoginForm in the authentication class and return to view desired.
public function showLoginForm()
{
return view('minha_view_personalizada');
}
There is another tip, which is to create the method called getLogin returning to view. It will have the same effect as shown above with showLoginForm.
My Laravel is in version 5.4... So where do I find this 'showLoginForm''?
– Vitória
My project n has Authcontroller
– Vitória