Changing Laravel 5.4 password encryption and table column names

前端 未结 3 1837
孤街浪徒
孤街浪徒 2021-02-04 20:35

I am trying to integrate the auth in laravel 5.4 within an existing database where the user and password fields have other names (memberid, passwordnew_enc

3条回答
  •  暖寄归人
    2021-02-04 21:14

    upful's code worked for me (in Laravel 5.4)

    But I needed to add:

    use Illuminate\Contracts\Auth\Authenticatable as UserContract;
    

    in the CustomUserProvider class.

提交回复
热议问题