I've made a CMS, in Laravel, for a local charity, as part of my final research project. I have to present it in the morning and I have one niggling problem, that I can't figure out.
I have posts and comments, users and admins. Any authenticated user-type can comment on a post. I have a modal, for logging in, on the single post page and this is just a simple @if statement, that replaces the button.
If I login as an admin, I'm redirected to the admin panel, which is what I wanted. If I login as a user, i'm redirected to home; not good. I simply want to redirect a user using return back()->withInput I cannot seem to find the right class that deals with a user's redirect. I have tried in the login controller and the redirectIfAuthenticated middleware and neither works.
I'm tired, it's 4am and I'm probably looking in the wrong files. A little help would be great though, thank you.