Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Laravel 5.3 #166

@warlord0

Description

@warlord0

After moving on to Laravel 5.3 I couldn't get Auth:: to work :(

After checking out the code it was ALWAYS passing email as the logon attribute in $credentials. I double checked

My login controller:

protected $username = 'username'; // <-- This is wrong for 5.3

I figured out that now it need to be:

public function username()
{
    return 'username';
}

And now it works again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions