I work on an application that has a big design data like levels, upgrade time, descriptions and stuff like this. Beacuse there will be many multidimensional arrays with a lot of data in them, i don't want to store them for every user.I want to "build" the arrays when the lumen application is served.
My problem is that i don't know how to bind a method/a command to the php -S localhost:8000 -t public
command.
I didn't tried anything beacuse i don't know how to start. I was thinking to create a new artisan command that will call a method and that method will "build" my arrays.But how to bind the serve command to this command?
I expect that, after using php -s localhost:8000 -t public"
command, a new command/method will call automatically.