Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with favoriter_model #42

Open
tariqmagdy opened this issue Nov 22, 2023 · 1 comment
Open

Issue with favoriter_model #42

tariqmagdy opened this issue Nov 22, 2023 · 1 comment

Comments

@tariqmagdy
Copy link

tariqmagdy commented Nov 22, 2023

i have two models related to users one for admin users User and other for customers Customer, I need to apply this package with Customer model, and i seed on your package use the auth.providers.users.model, but as you see i have to provider

'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\Models\User::class, ], 'customers' => [ 'driver' => 'eloquent', 'model' => App\Models\Customer::class, ] ],

so I suggest to add on `config/favorite.php` 
`'favoriter_model' => App\Models\Customer::class,`
and use this instead of `auth.providers.users.model`
@overtrue
Copy link
Owner

Welcome to make a PR. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants