2014-12-22 18 views
1

IM使用laravel 4.2,工作時,我創建使用作曲家命令數據庫遷移文件會生成帶作曲家--create命令沒有正確laravel 4.2

Schema::table('authors', function(Blueprint $table) 

代替

Schema::create('authors', function(Blueprint $table) 

遷移文件這裏是我的遷移命令

php artisan migrate:make create_authors_table --table authors --create 

我曾嘗試作曲update命令還是它不工作,任何人都可以請幫我把它分類嗎?

回答

0

我剛使用下面的命令和它的作品:)

php artisan migrate:make create_authors_table --create=authors