octal
6 months ago
146
5
Laravel

Execute Artisan command from code

Posted 6 months ago by octal

Hello, I'm writing some maintenance functions for my website and I would like to know if there is a way to execute commands like

php artisan migrate:fresh

from a php script.

Please sign in or create an account to participate in this conversation.