-1
私はここに新しいです、私は解決できない問題があります。私はlaravel 5.3で私のテーブルを移行する際にエラーが発生しました。
私はCOMANDと私のマイグレーションを作成していた。--create =テーブル
移行テーブルをしかし、私は、「PHPの職人の移行」に入力しないとき、私はこのエラー
を持っている:PHPの職人メイクを[Symfony\Component\Debug\Exception\FatalErrorException] parse error
すべてのテーブルはこのようになります:
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CTEquiposMantenciones extends Migration
{
public function up()
{
Schema::create('equipos_mantenciones', function (Blueprint $table) {
$table->increments('id')->unique();
$table->integer('equipos_id');
$table->integer('matenciones_id');
});
}
public function down()
{
Schema::dropIfExists('equipos_mantenciones');
}
}
ありがとう、それは問題だった、私はそれを見ていない –
それを聞いてうれしい、解決策として答えをマークしてください:) –