Почему не удается выполнить перенос php artisan: неопределенный метод?

Посмотрите это изображение: 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');
}
}

0

Решение

Это означает, что нет функции с именем textarea() в классе Blueprint, Удалить код, который его вызывает.

1

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector