From 8205748637fa531b5ac53770886d763bca9f9e26 Mon Sep 17 00:00:00 2001 From: ale Date: Wed, 3 Jul 2024 19:22:42 -0300 Subject: [PATCH] traduccion barrio --- app/Models/Barrio.php | 2 +- database/seeders/BarrioSeeder.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Barrio.php b/app/Models/Barrio.php index 9c48da6..d321a2f 100644 --- a/app/Models/Barrio.php +++ b/app/Models/Barrio.php @@ -13,7 +13,7 @@ class Barrio extends Model * @var array */ protected $fillable = [ - 'name', + 'nombre', ]; /** diff --git a/database/seeders/BarrioSeeder.php b/database/seeders/BarrioSeeder.php index 1d59a25..e1e99e5 100644 --- a/database/seeders/BarrioSeeder.php +++ b/database/seeders/BarrioSeeder.php @@ -17,11 +17,11 @@ class BarrioSeeder extends Seeder public function run(): void { $prueba_id = Region::create([ - 'name' => 'PRUEBA', + 'nombre' => 'PRUEBA', ])->id; Barrio::create([ - 'name'=>'PRUEBA','region_id'=>$prueba_id, 'created_at'=>Date::now() + 'nombre'=>'PRUEBA','region_id'=>$prueba_id, 'created_at'=>Date::now() ]); } }