fdt2k / kda-webshop
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/fdt2k/kda-webshop
Requires
- php: ^7.3|^8.0
- fdt2k/laravel-package-service-provider: dev-master-2 || ^2.0
- laravel/framework: ^9.0
- laravel/ui: 4.x-dev
This package is auto-updated.
Last update: 2025-10-16 19:23:19 UTC
README
Customers Auth
sail artisan vendor:publish --provider="KDA\Webshop\CustomerProvider" --tag="config" --force
Install
Configure Laravel auth guard To enable auth, you have to add config/auth.php
'guards' => [
...
'customers'=> [
'driver' => 'session',
'provider' => 'users' // <- change this if you need another model
]
...
],
If you need to use another model
'providers' => [
...
'users' => [
'driver' => 'eloquent',
'model' => App\Models\Customer::class,
],
...
],
in your model (the default one or the custom one), you have to declare the guard
class User extends Authenticatable
{
protected $guard_name = 'customers';