app/Http/Requests/AuthUpdateRequest.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 [
            'avatar'=>'required',
            'username'=>'required',
            'sex'=>'required|in:0,1,2',
            'birthday'=>'date'
        ];
    }
public function rules ( ) { return [ 'avatar' => 'required' , 'username' => 'required' , 'sex' => 'required|in:0,1,2' , 'birthday' => 'date' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .