Level 3
if you're using laravel 5 the syntax has changed to "php artisan make:migration"
2 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I did the following command and get the following error why ? :
php artisan migrate:make add_additional_info_to_users_table --table=users
exception 'InvalidArgumentException' with message 'Command "migrate:make" is not defined.
Did you mean one of these?
migrate:reset
migrate:refresh
migrate:status
migrate:rollback
migrate:install
migrate' in /home/vagrant/code/hostianer/vendor/symfony/console/Symfony/Component/Console/Application.php:549
Stack trace:
#0 /home/vagrant/code/hostianer/vendor/symfony/console/Symfony/Component/Console/Application.php(192): Symfony\Component\Console\Application->find('migrate:make')
#1 /home/vagrant/code/hostianer/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /home/vagrant/code/hostianer/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(90): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /home/vagrant/code/hostianer/artisan(34): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 {main}
if you're using laravel 5 the syntax has changed to "php artisan make:migration"
Please or to participate in this conversation.