id(); $table->foreignId('user_id')->constrained()->onDelete('cascade'); $table->string('path'); // مسیر ذخیره فایل $table->string('title')->nullable(); $table->string('description')->nullable(); $table->enum('type', ['public', 'private'])->default('private'); // 🔑 type of image $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('images'); } };