The idea is : a user, after login, has to complete a survey to be able to access other routes. I want to block those routes until the survey is submited, I'm still learning Laravel so I dont know if this could be done with a middleware or sessions or javascript code or .. ?
CodePudding user response:
You can solve the problem in laravel with a middleware
CodePudding user response:
check https://laravel.com/docs/9.x/middleware it's a very comprehensive documentation with a clear example on how to implement it