欢迎光临
我们一直在努力

laravel BadMethodCallException : Method Illuminate\Database\Schema\Blueprint::int does not exist.

laravel 执行时php artisan migrate时提示如下错误:

Migrating: 2019_01_26_173010_create_article_table

 BadMethodCallException  : Method Illuminate\Database\Schema\Blueprint::int does not exist.
查看此文件发现

$table->int('sort')->default(100); 

将int改为integer

$table->integer('sort')->default(100); 
赞(0)
版权归原作者所有,如有侵权请告知。达维营-前端网 » laravel BadMethodCallException : Method Illuminate\Database\Schema\Blueprint::int does not exist.

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址