【发布时间】:2017-04-08 07:11:02
【问题描述】:
看这张图片:https://postimg.org/image/4fvu34juz/
当我运行 php artisan migrate 时,有显示:
[symfony\component\debug\exception\fatalthrowableerror]
call to undefined method illuminate\database\schema\blueprint::textarea<>
有什么办法可以解决我的问题吗?
更新:
代码:
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFlightTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::create('flights', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('airline');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::drop('flights');
}
}
【问题讨论】:
-
请显示迁移。
-
@Alexey Mezenin,我更新了我的问题
-
错误表示您正在尝试在某处使用
textarea,因此您应该找到此迁移并将其展示给我们。 -
@Alexey Mezenin,已解决。我找到了。谢谢
标签: php laravel command-line command-prompt laravel-5.3