I'm building a kiosk app which centers around managing footage which is stored on a shared drive.
If the drive isn't there, pretty much most of the app won't run, so I need to test for the drive before all requests, and if not found, redirect to a "setup" page.
Where would be the best place to do this?
I tried in my AppServiceProvider->boot()
method, but the redirect didn't work.
My next thought was middleware, but the drive existing is not really a function of the Request.
Where should I do this?
Thanks.
I solved the problem using middleware in the end:
Is a reasonably straightforward solution.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community