From 49c0a29e95363c3d142649b3d74fec209784f091 Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 12 Mar 2024 17:26:33 -0300 Subject: [PATCH] caracteristica seeder --- database/seeders/CaracteristicaSeeder.php | 24 +++++++++++++++++++++++ database/seeders/DatabaseSeeder.php | 1 + 2 files changed, 25 insertions(+) create mode 100644 database/seeders/CaracteristicaSeeder.php diff --git a/database/seeders/CaracteristicaSeeder.php b/database/seeders/CaracteristicaSeeder.php new file mode 100644 index 0000000..192e412 --- /dev/null +++ b/database/seeders/CaracteristicaSeeder.php @@ -0,0 +1,24 @@ +insert([ + ['name'=>'SIN GLUTEN', 'created_at'=>Date::now()], + ['name'=>'SIN SAL AGREGADA', 'created_at'=>Date::now()], + ['name'=>'SIN AZÚCAR AGREGADA', 'created_at'=>Date::now()], + ['name'=>'SIN PRODUCTOS DE ORIGEN ANIMAL', 'created_at'=>Date::now()], + ]); + } +} diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 9e2405c..3e7edf8 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -14,6 +14,7 @@ public function run(): void { $this->call([ BarrioSeeder::class, + CaracteristicaSeeder::class, ]); } }