lundi 10 septembre 2018

Laravel 5.6 - redirect to route after login based on URL GET parameter

I've got a standard fresh install of Laravel 5.6.

For web users, I want them to be able to log in as normal at /login and have them redirected to their user dashboard - all well and good.

However I'm developing something in Electron, and I am wanting to scrape something from the Laravel site after log in and then I want to close the window, so, I was hoping there was a way to potentially pass a GET parameter such as /login?app=true which would take me to another route rather than the dashboard.

I wouldn't be able to set anything in the session or anything. The most I can do is manipulate the DOM of the login page in Electron.

Any ideas?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2NwvZbL
via IFTTT

Aucun commentaire:

Enregistrer un commentaire