feat(menu): update validation rules and structure for contact content in MenuSeeder and related tests
This commit is contained in:
@@ -48,10 +48,13 @@ class MenuSeeder extends Seeder
|
||||
'locations' => 'required|array|min:1',
|
||||
'locations.*.label' => 'required|string',
|
||||
'locations.*.addresses' => 'required|array|min:1',
|
||||
'locations.*.addresses.*' => 'required|string',
|
||||
'map_locations' => 'required|array',
|
||||
'map_locations.*' => 'required|array|size:2',
|
||||
'map_locations.*.*' => 'required|numeric',
|
||||
'locations.*.addresses.*' => 'required|array:label,address,coordinates',
|
||||
'locations.*.addresses.*.label' => 'required|string',
|
||||
'locations.*.addresses.*.address' => 'required|string',
|
||||
'locations.*.addresses.*.coordinates' => 'required|array|size:2',
|
||||
'locations.*.addresses.*.coordinates.0' => 'required|numeric|between:-90,90',
|
||||
'locations.*.addresses.*.coordinates.1' => 'required|numeric|between:-180,180',
|
||||
'map_locations' => 'prohibited',
|
||||
],
|
||||
'route' => '/ayuda/contacto',
|
||||
],
|
||||
@@ -127,15 +130,19 @@ class MenuSeeder extends Seeder
|
||||
'rosario' => [
|
||||
'label' => 'Rosario',
|
||||
'addresses' => [
|
||||
'Av. San Lorenzo 1542',
|
||||
[
|
||||
'label' => 'Gigante de Arroyito',
|
||||
'address' => 'Av. Génova 640, Rosario',
|
||||
'coordinates' => [-32.913997, -60.674567],
|
||||
],
|
||||
[
|
||||
'label' => 'Telepagos',
|
||||
'address' => 'Rioja 1150, piso 12, dpto. 3, Rosario',
|
||||
'coordinates' => [-32.946820, -60.639320],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'map_locations' => [
|
||||
'gigante_de_arroyito' => [-32.913997, -60.674567],
|
||||
'punto_centro' => [-32.946820, -60.639320],
|
||||
'punto_sur' => [-32.971510, -60.650640],
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($tenants as $tenant) {
|
||||
|
||||
Reference in New Issue
Block a user