id(); $table->string('title'); $table->string('slug')->unique(); $table->text('content'); $table->date('event_date_start'); $table->date('event_date_end')->nullable(); $table->time('event_time_start'); $table->string('address')->nullable(); $table->boolean('is_online'); $table->unsignedBigInteger('category_id')->nullable(); $table->foreign('category_id')->references('id')->on('event_categories'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('events'); } };