traduccion barrio
This commit is contained in:
parent
1e9b413255
commit
8205748637
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ class Barrio extends Model
|
||||||
* @var array<int, string>
|
* @var array<int, string>
|
||||||
*/
|
*/
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'name',
|
'nombre',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -17,11 +17,11 @@ class BarrioSeeder extends Seeder
|
||||||
public function run(): void
|
public function run(): void
|
||||||
{
|
{
|
||||||
$prueba_id = Region::create([
|
$prueba_id = Region::create([
|
||||||
'name' => 'PRUEBA',
|
'nombre' => 'PRUEBA',
|
||||||
])->id;
|
])->id;
|
||||||
|
|
||||||
Barrio::create([
|
Barrio::create([
|
||||||
'name'=>'PRUEBA','region_id'=>$prueba_id, 'created_at'=>Date::now()
|
'nombre'=>'PRUEBA','region_id'=>$prueba_id, 'created_at'=>Date::now()
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue