i am using laravel 5.1.8. i am making a login/registration system. i made a controller named AdminController and protect it with middleware.
but i am using laravel\'
Add this to your AuthController:
AuthController
protected $redirectTo = '/admin';
This tells all the redirect methods in the various traits to redirect there instead of to /home.
/home