bitfumes / laravel-multiauth

Multi Auth and admin auth in Laravel Project
MIT License
470 stars 105 forks source link

Still cannot assign model version 5.2.0 #139

Closed webleyson closed 3 years ago

webleyson commented 3 years ago

Describe the bug In the docs it says you can set your own Admin model

https://bitfumes.github.io/laravel-multiauth/settings.html#models

I have set the following

'admin' => App\Admin::class,

But this has no affect. I have set in - vendors/config/auth.php and it sets.

What am I doing wrong?

Laravel Version 7.24

To Reproduce Steps to reproduce the behavior:

Go to 'config/multiauth.php' Set model to local model - app/Admin.php dd(Auth::guard('admin')->user()); See error - Not the App/Admin auth Expected behavior Expected to see admin from my app folder

sarthaksavvy commented 3 years ago

can you please try 5.2.1

webleyson commented 3 years ago

oh, 5.2.1? OK. Will try. Thanks.

sarthaksavvy commented 3 years ago

Is it working ??

webleyson commented 3 years ago

Yes sir, it did!! Thankyou so much.