I am using Laravel 5.
I have tried to access the following url
http:://localhost/myproject/public/index.php/tasks
I have added my App/Controllers/Controller.php as following code
public function __construct()
{
$this->middleware('auth');
}
This code will redirects to login page whenever I try to access any pages in project. That will redirects to the same page which I have tried to access after login. I don't know how laravel doing this. Can anybody tell how this is working?