You can run a command from anywhere
I would probably question if you should
Since when have controllers been 'old fashioned'
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everybody,
I got a command that performs some heavy machinery (runs multiple docker-container and creates a new model instance from the output).
This works fine (I mean: Really, fine. Laravel is great! :-D ).
Now I would like to create a possibility to create those jobs using the API.
Now what I am planning to do:
Now my question: Is it even possible to run commands from old-fashioned controllers? Or is it even a good idea?
Please or to participate in this conversation.