[4.x] Move Laravel Autorun to an injected Laravel Command #406
DarkGhostHunter
started this conversation in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the way Laravel Auturun works is by catching an environment value and a bunch a single script that executes all the logic. This logic is a bunch of
php artisan *
calls.Theoretically, since the Laravel Autorun script also runs the application to detect if the database is on, we could move all of these Laravel Auturun logic into a single (or multiple) commands.
A tentative implementation should look like this:
By calling a single command, we can move all the logic to single PHP classes, where there is more flexibility to prepare the application using its own code.
The command could easily find other files and even let the developer set its own autorun logic in-app, without editing bash files outside its control.
Beta Was this translation helpful? Give feedback.
All reactions