diff --git a/app/Models/Categoria.php b/app/Models/Categoria.php index 66993d1..128e0c8 100644 --- a/app/Models/Categoria.php +++ b/app/Models/Categoria.php @@ -13,7 +13,7 @@ class Categoria extends Model * @var array */ protected $fillable = [ - 'name', + 'nombre', ]; /** diff --git a/database/seeders/CaracteristicaSeeder.php b/database/seeders/CaracteristicaSeeder.php index 1b6bef7..94d1ce3 100644 --- a/database/seeders/CaracteristicaSeeder.php +++ b/database/seeders/CaracteristicaSeeder.php @@ -15,10 +15,10 @@ class CaracteristicaSeeder extends Seeder public function run(): void { DB::table('caracteristicas')->insert([ - ['name' => 'SIN GLUTEN', 'key' => 'S-G', 'created_at' => Date::now(), 'updated_at' => Date::now()], - ['name' => 'SIN SAL AGREGADA', 'key' => 'S-S', 'created_at' => Date::now(), 'updated_at' => Date::now()], - ['name' => 'SIN AZÚCAR AGREGADA', 'key' => 'S-A', 'created_at' => Date::now(), 'updated_at' => Date::now()], - ['name' => 'SIN PRODUCTOS DE ORIGEN ANIMAL', 'key' => 'S-P-A', 'created_at' => Date::now(), 'updated_at' => Date::now()], + ['nombre' => 'SIN GLUTEN', 'codigo' => 'S-G', 'created_at' => Date::now(), 'updated_at' => Date::now()], + ['nombre' => 'SIN SAL AGREGADA', 'codigo' => 'S-S', 'created_at' => Date::now(), 'updated_at' => Date::now()], + ['nombre' => 'SIN AZÚCAR AGREGADA', 'codigo' => 'S-A', 'created_at' => Date::now(), 'updated_at' => Date::now()], + ['nombre' => 'SIN PRODUCTOS DE ORIGEN ANIMAL', 'codigo' => 'S-P-A', 'created_at' => Date::now(), 'updated_at' => Date::now()], ]); } }