feature/modelos-y-migraciones #3

Merged
rho merged 28 commits from feature/modelos-y-migraciones into master 2024-03-14 16:34:44 -03:00
2 changed files with 25 additions and 0 deletions
Showing only changes of commit 49c0a29e95 - Show all commits

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([
BarrioSeeder::class,
CaracteristicaSeeder::class,
]);
}
}