表格未在laravel 5.5中创建

时间:2017-09-15 11:14:41

标签: php laravel

我安装了laravel 5.5和php 7.1, 我没有错误和作曲家和laravel 5.5成功安装。 我为我的项目创建了users_profile的迁移,然后像这样为迁移添加了几个列。

$table->string('email',100)->unique();
$table->string('profile_pic')->nullable();

当我运行php artisan migrate时,我收到call to undefined function nullable()并再次Call to undefined function unique()的错误。

所有错误均由Symphony\component\debug\exeption\FatalThrowableError主持。

可能是什么问题,我使用的所有功能都遵循laravel docs指南。

0 个答案:

没有答案