skip to Main Content

Laravel seeder dont fill table with foreing keys

I'm working on a Laravel project, and I have the following migrations: public function up(): void { Schema::create('customers', function (Blueprint $table) { $table->id('customer_id'); $table->string('first_name', 50); $table->string('last_name', 50); $table->string('address', 100)->nullable(); $table->string('phone', 15)->nullable(); $table->string('email', 50)->unique(); $table->timestamp('registration_date')->default(DB::raw('CURRENT_TIMESTAMP')); $table->timestamps(); }); } /** * Reverse…

VIEW QUESTION
Back To Top
Search