id(); $table->foreignIdFor(User::class)->constrained()->cascadeOnDelete(); $table->foreignIdFor(Category::class)->constrained()->cascadeOnDelete(); $table->string('name'); $table->longText('description'); $table->string('location'); $table->string('time_estimate'); $table->boolean('completed'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('tasks'); } };