diff --git a/database/migrations/0000_00_00_000001_create_foos_table.php b/database/migrations/0000_00_00_000001_create_foos_table.php index 584cf4a..d02337f 100644 --- a/database/migrations/0000_00_00_000001_create_foos_table.php +++ b/database/migrations/0000_00_00_000001_create_foos_table.php @@ -16,8 +16,7 @@ public function up() $table->id(); $table->string('name'); $table->text('description')->nullable(); - $table->integer('bar_id')->unsigned()->nullable(); - $table->foreign('bar_id')->references('id')->on(Config::get('amethyst.foo.data.bar.table')); + $table->foreignId('bar_id')->on(Config::get('amethyst.foo.data.bar.table')); $table->timestamps(); $table->softDeletes(); });