21 lines
489 B
PHP
21 lines
489 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Services\Tenant\TenantContext;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->scoped(TenantContext::class, fn (): TenantContext => new TenantContext());
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
// Tenant-aware policies and observers are registered here as the
|
|
// feature areas move from the legacy application.
|
|
}
|
|
}
|