id(); $table->string('name_it'); $table->string('name_en'); $table->text('description_it')->nullable(); $table->text('description_en')->nullable(); // sport type defined in pivot table // pics defined in pivot table - first pic is the cover $table->unsignedBigInteger('route_category_id'); $table->foreign('route_category_id')->references('id')->on('route_categories')->onDelete('cascade'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('routes'); } };