Search code examples
phplaravel-5.1database-migrationlaravel-artisanartisan-migrate

Laravel 5.1: Call to undefined function dropColumn() with phpArtisan


I'm trying to learn the Laravel 5.1 framework, which is amazing. I'm following the tutorials of Jeffrey Way on laracasts.com. Only now i have come across a problem that i can't seem to get rid of.

I was following the tutorial and i tried to do a migrate:refresh with the php artisan, which should work, but i get this error all the time:

Error

And for the love of god, i can't figure out what the problem is. This is how my migration looks like:

Migration

I can't seem to find the answer anywhere. Any help would be greatly appreciated!


Solution

  • I think that the error is from one of your other migration files.

    The migrate:refresh command will first roll back ALL of your database migrations, and then run the migrate command.

    http://laravel.com/docs/5.1/migrations