app/Http/Requests/DemandeInformationRequest.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 [
            'nom' => 'required|string|max:255',
            'prenom' => 'required|string|max:255',
            'email' => 'required|email|max:255',
            'telephone' => 'nullable|string|max:30',
            'profil' => 'nullable|string|max:50',
            'precision_profil' => 'nullable|string|max:255',
            'besoin' => 'required|max:65000',
        ];
    }
public function rules ( ) { return [ 'nom' => 'required|string|max:255' , 'prenom' => 'required|string|max:255' , 'email' => 'required|email|max:255' , 'telephone' => 'nullable|string|max:30' , 'profil' => 'nullable|string|max:50' , 'precision_profil' => 'nullable|string|max:255' , 'besoin' => 'required|max:65000' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .