caracteristica seeder

This commit is contained in:
Alejandro Tasistro 2024-03-12 17:26:33 -03:00
parent 2b7a5e1d91
commit 49c0a29e95
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Date;
use Illuminate\Support\Facades\DB;
class CaracteristicaSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
DB::table('caracteristicas')->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()],
]);
}
}

View File

@ -14,6 +14,7 @@ public function run(): void
{ {
$this->call([ $this->call([
BarrioSeeder::class, BarrioSeeder::class,
CaracteristicaSeeder::class,
]); ]);
} }
} }