php - Redirection to login on user auth with Laravel 5.2 -


i have laravel 5.2 application running ok in live server. running ok in ubuntu 14.04 apache server.

now using mac made fresh installation of app using mamp pro application. runing ok in frontend when try login backend there redirection doesn't allow me authenticated. db same, user should authenticated.

when type user , password , hit send screen shows:

redirecting http://localhost/admin/dashboard 

then screen refresh again , shows:

redirecting http://localhost/admin/auth/login 

i have think maybe related session, stablished to:

'driver' => env('session_driver', 'file'), 

so not know why can reason. idea?


update - include summary of routes.php

this routes.php file (chunks of it)

// admin area route::get('admin', function () {   return redirect('/admin/dashboard'); });  route::group([   'namespace' => 'app\http\controllers\admin',   'middleware' => 'auth.admin', ], function () {    route::get('admin/dashboard'        , 'admincontroller@index');  });  route::get('admin/auth/login', 'app\http\controllers\admin\auth\authcontroller@login'); 

it sounds routes aren't in web middleware. make sure routes require cookies or session defined this:

route::group(['middleware' => ['web']], function() {   route::get('your-route-here', 'somecontroller@method'); }); 

this new feature in laravel 5.2.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -