Merge branch 'issue-56' into 'develop'
Source details aren't required anymore See merge request ldc-web/projets/startcoq!35
This commit is contained in:
commit
53524b96d0
2 changed files with 6 additions and 9 deletions
|
|
@ -63,12 +63,9 @@ class StoreProductRequest extends FormRequest
|
|||
'name' => 'required|string|min:3|max:255',
|
||||
'brand_id' => 'required|exists:brands,id',
|
||||
'source' => [new Enum(SourceEnum::class)],
|
||||
'fair' => 'nullable|string|min:3|max:255|required_if:source,' .
|
||||
SourceEnum::showConsumer->value . ',' .
|
||||
SourceEnum::showCustomer->value . ',' .
|
||||
SourceEnum::showTrade->value,
|
||||
'shop' => 'nullable|string|min:3|max:255|required_if:source,' . SourceEnum::magazin->value,
|
||||
'catalogue' => 'nullable|string|min:3|max:255|required_if:source,' . SourceEnum::catalogArgumentary->value,
|
||||
'fair' => 'nullable|string|min:3|max:255',
|
||||
'shop' => 'nullable|string|min:3|max:255',
|
||||
'catalogue' => 'nullable|string|min:3|max:255',
|
||||
'gencod' => 'nullable|numeric|min:0',
|
||||
'picture_alt' => 'required|min:3|max:255',
|
||||
'picture_title' => 'required|min:3|max:255',
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
for="catalogue"
|
||||
class="col-form-label"
|
||||
>
|
||||
<b>{{ __("Détail de la source Catalogue") }} *</b>
|
||||
<b>{{ __("Détail de la source Catalogue") }}</b>
|
||||
</label>
|
||||
<input
|
||||
class="form-control"
|
||||
|
|
@ -73,7 +73,7 @@
|
|||
for="shop"
|
||||
class="col-form-label"
|
||||
>
|
||||
<b>{{ __("Détail de la source Magasin") }} *</b>
|
||||
<b>{{ __("Détail de la source Magasin") }}</b>
|
||||
</label>
|
||||
<input
|
||||
class="form-control"
|
||||
|
|
@ -108,7 +108,7 @@
|
|||
for="salon"
|
||||
class="col-form-label"
|
||||
>
|
||||
<b>{{ __("Détail de la source Salon") }} *</b>
|
||||
<b>{{ __("Détail de la source Salon") }}</b>
|
||||
</label>
|
||||
<input
|
||||
class="form-control"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue