<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ThemeStoreDefaultRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {//color	police	taillePolice	alignement	backgroundColor	position
        return [
            'themes' => ['required', 'array'],
            'themes.*.etablissement_id' => ['required', 'integer'],
           /* 'themes.*.color' => ['required', 'max:50', 'string'],
            'themes.*.backgroundColor' => ['required', 'max:50', 'string'],
            'themes.*.police' => ['required', 'max:50', 'string'],
            'themes.*.taillePolice' => ['required', 'max:50', 'string'],
            'themes.*.alignement' => ['required', 'max:50', 'string']
            'themes.*.position' => ['required', 'max:50', 'string'],
            */

        ];
    }
}
