app/Http/Requests/SignupRequest.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' => 'nullable',
            'name' => 'required',
            'email' => 'required|unique:users',
            'remember_token' => 'nullable',
            'email_verified_at' => 'nullable',
            'password' => 'required|min:8',
            'confirm_password' => 'required|min:8|max:20|same:password'
        ];
    }
public function rules ( ) { return [ 'id' => 'nullable' , 'name' => 'required' , 'email' => 'required|unique:users' , 'remember_token' => 'nullable' , 'email_verified_at' => 'nullable' , 'password' => 'required|min:8' , 'confirm_password' => 'required|min:8|max:20|same:password' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .