这是我的迁移
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateImagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('images', function(Blueprint $table)
{
$table->increments('id');
$table->string('file');
$table->string('caption');
$table->text('description');
$table->integer('albumid')->unsigned();
$table->foreign('albumid')->references('id')->on('album');
$table->timestamps();
});
}
public function down()
{
Schema::drop('images');
}
}
答案 0 :(得分:0)
修正了它的运行
composer dump-autoload