In the shell I can create a database migration (for example) like so:
./artisan migrate:make --table="mytable" mymigration
Using Artisan::call() I can't work out how to pass a non-argument parameter ("mymigration" in this example). I have tried many variants of the code below:
Artisan::call('db:migrate', ['--table' => 'mytable', 'mymigration'])
有人有什么 idea 吗?在此期间,我一直在使用shell_exec("./artisan…"),但我对这种方法不满意.