php artisan migrate rollback – RuntimeException, Too many arguments

So I spent over an hour trying to work out why php artisan migrate rollback wouldn’t work. It kept giving me [RuntimeException] Too many arguments in a little red box.

Which was weird, because php artisan migrate worked fine, time after time. And if I did a brute force rollback (by dropping the tables in MySQL Workbench), I could then do php artisan migrate again, and it worked fine again. But php artisan migrate rollback still didn’t work, and still gave me theย [RuntimeException] Too many arguments error.

Then eventually I read the documentation and saw that you need a colon character. It’s meant to beย php artisan migrate:rollback (with a colon after migrate and before rollback).

And now it works perfectly again. ย ๐Ÿ™‚

Advertisements
php artisan migrate rollback – RuntimeException, Too many arguments

6 thoughts on “php artisan migrate rollback – RuntimeException, Too many arguments

  1. Awesome, was just pulling my hair out for 20 minutes. I’m currently making an artisan command, and generated it using `php artisan make:console`, and this generated a file with a module variable called $signature… Which should apparantly have been $name. Anyway this post made me realize. Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s