We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dd79b28 + 1ffc98b commit ef756b9Copy full SHA for ef756b9
resources/migrations/create_media_table.php.stub
@@ -13,8 +13,7 @@ class CreateMediaTable extends Migration
13
{
14
Schema::create('media', function (Blueprint $table) {
15
$table->increments('id');
16
- $table->string('model_type')->nullable();
17
- $table->integer('model_id')->nullable();
+ $table->morphs('model');
18
$table->string('collection_name');
19
$table->string('name');
20
$table->string('file_name');
0 commit comments