Merge branch 'develop' into trunk
This commit is contained in:
commit
630f3dde28
1 changed files with 109 additions and 110 deletions
|
|
@ -13,123 +13,122 @@ return new class extends Migration
|
|||
public function up(): void
|
||||
{
|
||||
//SORTIR A L' EXTERIEUR
|
||||
StaticPage::updateOrCreate(
|
||||
['type' => StaticPageType::exitOutside],
|
||||
['data' => [
|
||||
'title' => [
|
||||
'label' => 'Cahier de charge : Titre',
|
||||
'inputType' => 11,
|
||||
'value' => '',
|
||||
'validate' => 'required|string|between:3,255',
|
||||
'required' => true
|
||||
$staticPage = StaticPage::query()->where('type', StaticPageType::exitOutside)->first();
|
||||
$staticPage->data = [
|
||||
'title' => [
|
||||
'label' => 'Cahier de charge : Titre',
|
||||
'inputType' => 11,
|
||||
'value' => '',
|
||||
'validate' => 'required|string|between:3,255',
|
||||
'required' => true
|
||||
],
|
||||
'description' => [
|
||||
'label' => 'Cahier de charge : Description',
|
||||
'inputType' => 12,
|
||||
'value' => '',
|
||||
'validate' => 'required|string|min:15',
|
||||
'required' => true
|
||||
],
|
||||
'picto' => [
|
||||
'label' => 'Cahier de charge : Picto',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 90,
|
||||
'height' => 90
|
||||
],
|
||||
'description' => [
|
||||
'label' => 'Cahier de charge : Description',
|
||||
'inputType' => 12,
|
||||
'value' => '',
|
||||
'validate' => 'required|string|min:15',
|
||||
'required' => true
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'required',
|
||||
'required' => true
|
||||
],
|
||||
'galery_title' => [
|
||||
'label' => 'Slider : Titre',
|
||||
'inputType' => 11,
|
||||
'value' => '',
|
||||
'validate' => 'required|string|between:3,255',
|
||||
'required' => true
|
||||
],
|
||||
'slider_image_1' => [
|
||||
'label' => 'Slider : Image 1',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'picto' => [
|
||||
'label' => 'Cahier de charge : Picto',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 90,
|
||||
'height' => 90
|
||||
],
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'required',
|
||||
'required' => true
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'required',
|
||||
'required' => true
|
||||
],
|
||||
'slider_image_2' => [
|
||||
'label' => 'Slider : Image 2',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'galery_title' => [
|
||||
'label' => 'Slider : Titre',
|
||||
'inputType' => 11,
|
||||
'value' => '',
|
||||
'validate' => 'required|string|between:3,255',
|
||||
'required' => true
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'required',
|
||||
'required' => true
|
||||
],
|
||||
'slider_image_3' => [
|
||||
'label' => 'Slider : Image 3',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'slider_image_1' => [
|
||||
'label' => 'Slider : Image 1',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'required',
|
||||
'required' => true
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'required',
|
||||
'required' => true
|
||||
],
|
||||
'slider_image_4' => [
|
||||
'label' => 'Slider : Image 4',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'slider_image_2' => [
|
||||
'label' => 'Slider : Image 2',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'required',
|
||||
'required' => true
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'nullable',
|
||||
'required' => false
|
||||
],
|
||||
'slider_image_5' => [
|
||||
'label' => 'Slider : Image 5',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'slider_image_3' => [
|
||||
'label' => 'Slider : Image 3',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'required',
|
||||
'required' => true
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'nullable',
|
||||
'required' => false
|
||||
],
|
||||
'slider_image_6' => [
|
||||
'label' => 'Slider : Image 6',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'slider_image_4' => [
|
||||
'label' => 'Slider : Image 4',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'nullable',
|
||||
'required' => false
|
||||
],
|
||||
'slider_image_5' => [
|
||||
'label' => 'Slider : Image 5',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'nullable',
|
||||
'required' => false
|
||||
],
|
||||
'slider_image_6' => [
|
||||
'label' => 'Slider : Image 6',
|
||||
'inputType' => 4,
|
||||
'dimensions' => [
|
||||
'width' => 338,
|
||||
'height' => 222
|
||||
],
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'nullable',
|
||||
'required' => false
|
||||
]
|
||||
]]
|
||||
);
|
||||
'alt' => '',
|
||||
'title' => '',
|
||||
'value' => '',
|
||||
'validate' => 'nullable',
|
||||
'required' => false
|
||||
]
|
||||
];
|
||||
$staticPage->saveQuietly();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue