31 lines
592 B
PHP
31 lines
592 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Auth::provider('tenant-users', function ($app, array $config) {
|
|
return new TenantUserProvider(
|
|
$app['hash'],
|
|
$config['model']
|
|
);
|
|
});
|
|
}
|
|
}
|