traduccion barrio

This commit is contained in:
Alejandro Tasistro 2024-07-03 19:22:42 -03:00
parent 1e9b413255
commit 8205748637
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ class Barrio extends Model
* @var array<int, string>
*/
protected $fillable = [
'name',
'nombre',
];
/**

View File

@ -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()
]);
}
}