app/Http/Requests/User/UserCreateRequest.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 [
            'username'     => 'required|max:225',
            'email'        => 'required|max:255',
        ];
    }
public function rules ( ) { return [ 'username' => 'required|max:225' , 'email' => 'required|max:255' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
//            'password'     => 'required|max:255', //            'level'        => 'required|max:255'