app/Http/Requests/Attributions/AttributionRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'attribution_fr' => 'required|unique:attributions,attribution_fr|max:250',
            'attribution_ar' => 'required|unique:attributions,attribution_ar|max:250',
            'secteur' => 'required',
        ];
    }
public function rules ( ) { return [ 'attribution_fr' => 'required|unique:attributions,attribution_fr|max:250' , 'attribution_ar' => 'required|unique:attributions,attribution_ar|max:250' , 'secteur' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .