id(); $table->text('title'); $table->string('slug')->unique(); $table->text('subtitle'); $table->text('body'); $table->string('file',2048)->nullable(); $table->string('ext')->nullable(); $table->unsignedBigInteger('downloads')->default(0)->comment('downloads count'); $table->boolean('is_fillable')->default(true); $table->unsignedBigInteger('size')->default(0); $table->nullableMorphs('attachable'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('attachments'); } };