where('email', 'admin@example.com')->exists(); if (!$exists) { DB::table('users')->insert([ 'name' => 'Admin User', 'email' => 'admin@example.com', 'password' => Hash::make('password'), 'role' => 'admin', 'created_at' => now(), 'updated_at' => now(), ]); } } }