-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate error [ErrorException] Undefined variable: table #61
Comments
Hey Joe, This sounds like an error in your Laravel migrations. I could take a quick look at them if you want to make a gist of your migration files (should be in app/database/migrations/) and send it over. Thanks! |
You probably forgot to wrap you column generators in Schema::create('users', function($table) {}); |
Look in your migrations files.. |
Look |
@MrDinsdale It can even happen if you've added dropForiegn() or dropColumn() methods unnecessarily in your down() method for a Create Table Migration. |
@MrDinsdale maybe the foreign key that you wrote is outside the schema{} |
@MrDinsdale In my case solution is this: http://larabrain.com/tips/debugging-laravel-migrations-using-verbose-output |
Mercii cette Astuce m'a bien aidé dib90 |
Hey,
Getting an error when running php artisan migrate:
[ErrorException]
Undefined variable: table
migrate [--bench[="..."]] [--database[="..."]] [--path[="..."]] [--package[="..."]] [--pretend] [--seed]
Not sure if its something i've done wrong but any suggestions would be appreciated!
Joe
The text was updated successfully, but these errors were encountered: