Support the ongoing development of Laravel.io →
Configuration Architecture Installation
Last updated 1 year ago.
0

I solved the problem using middleware in the end:

  1. Add new Setup middleware class and entry in HttpKernel middleware array
  2. Check for existence of paths in middleware class
  3. If not found, and the route name is not already admin/setup (or else we get into a loop) return a redirect to admin/setup
  4. in admin/setup controller, run the setup logic and load a view

Is a reasonably straightforward solution.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.