Make use of Laravel 5 default login
If you see the default AuthController.php, you can actually see this
They called this as traits, which was introduced in PHP 5.4.0
By using their default login, you have to create your own view, e.g.
<form class="form-signin" method="POST">
In the app/Http/Controllers/Auth/AuthController.php, you can specify your username in the table
(some of people will use email instead). The
$redirectPath is refer to after you successful
login, where should it redirect to?
As my example, I actually move the model class to a Models folder, thus I need to change this
If you want to change the login error message, originally is “These credentials do not match our records.”
Then you can edit resources/lang/en/auth.php
Basically is done now. Try it yourself…