Support the ongoing development of Laravel.io →
Authentication Input Eloquent
Last updated 1 year ago.
0

If your still using the default AuthController, there is a validation line that references the users table.

You will need to update this : 'email' => 'required|email|max:255|unique:users',

/**
     * Get a validator for an incoming registration request.
     *
     * @param  array  $data
     * @return \Illuminate\Contracts\Validation\Validator
     */
    protected function validator(array $data)
    {
        return Validator::make($data, [
            'name' => 'required|max:255',
            'email' => 'required|email|max:255|unique:users',
            'password' => 'required|confirmed|min:6',
        ]);
    }
0

thank u so much for reply.i have tried this but its not getting me logged in. please help

0

Sign in to participate in this thread!

Eventy

Your banner here too?

hariomtech hariomtech Joined 18 Nov 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.