Support the ongoing development of Laravel.io →
Authentication Input Eloquent

i want to change login table in my project for this i tried to change model name in config/auth.php and table name also but its not getting me logged in please help me! Thanks in advance

Last updated 3 years 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!

PHPverse

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.

© 2025 Laravel.io - All rights reserved.