Support the ongoing development of Laravel.io →
Authentication
Last updated 2 years ago.
0

can you alter your question to remove the solution and add the solution as a comment so we can mark it as solved ?

0
class AuthController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Registration & Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles the registration of new users, as well as the
    | authentication of existing users. By default, this controller uses
    | a simple trait to add these behaviors. Why don't you explore it?
    |
    */
    use AuthenticatesAndRegistersUsers, ThrottlesLogins;
    /**
     * Where to redirect users after login / registration.
     *
     * @var string
     */
    protected $redirectTo = '/home';
    protected $username = 'username';  // you can put whatever column you want here from your users/auth table

I thought I would share this with others just in case they had the same question.

0

Thank you!

This is the simple solution I was looking for.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

r0bdiabl0 r0bdiabl0 Joined 2 Feb 2014

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.