app/Http/Requests/UserRequest.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 [
            'id' => 'numeric|min:7|required',
            'nombre' => 'min:4|max:30|required',
            'apellido' => 'min:4|max:20|required',
            'password' => 'min:6|max:12|required',
            'password_confirmation' => 'min:6|max:12|same:password',
            'email' => 'unique:users|required'
        ];
    }
public function rules ( ) { return [ 'id' => 'numeric|min:7|required' , 'nombre' => 'min:4|max:30|required' , 'apellido' => 'min:4|max:20|required' , 'password' => 'min:6|max:12|required' , 'password_confirmation' => 'min:6|max:12|same:password' , 'email' => 'unique:users|required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .