I would create a middleware and throw the logic in the handle method. https://laravel.com/docs/5.4/middleware#defining-middleware
May 8, 2017
2
Level 4
How and Where would I put a function to redirect based on if a table profile has been filed?
Basically I have three tables related to filling a profile, I want to ensure when the first time a user registers they will always go that page. I know that can be done by changing the redirect variable
But what if they logout after registering and then sign back in, I want to make sure they always get redirected no matter where they go if these three tables aren't filled.
Would I create a function in a middle ware somewhere?
Pretty new to all this stuff, so learning as much as I can
Level 50
1 like
Please or to participate in this conversation.