app/Http/Requests/UpdateUsersRequest.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 [
            'name' => 'required|min:2|max:50',
            'apelido' => 'required|min:2|max:50',
            'img' => 'nullable',
            'data_nasc' => 'required',
            'genero' => 'required',
            'pais' => 'required',
        ];
    }
public function rules ( ) { return [ 'name' => 'required|min:2|max:50' , 'apelido' => 'required|min:2|max:50' , 'img' => 'nullable' , 'data_nasc' => 'required' , 'genero' => 'required' , 'pais' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .