id(); $table->string('title'); $table->string('slug')->unique(); $table->string('author'); $table->string('cover_image')->nullable(); $table->date('publication_date')->nullable(); $table->text('description')->nullable(); $table->foreignId('category_id')->constrained()->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('books'); } };