17dd5acd23
Implements T1.1-T1.4: Spatie role/permission seeding, Sanctum token issuance for customer channels and the FastAPI agent (with an ability-exact-match middleware to tell them apart), Filament admin panel access restricted to admin-tier roles with the navigation group order, and skeleton BookingPolicy/RoutePolicy gated on the seeded permissions ahead of their models landing in later phases.
18 lines
401 B
PHP
18 lines
401 B
PHP
<?php
|
|
|
|
namespace Modules\Routing\Providers;
|
|
|
|
use Illuminate\Contracts\Auth\Access\Gate;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Modules\Routing\Policies\RoutePolicy;
|
|
|
|
class RoutingServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void {}
|
|
|
|
public function boot(Gate $gate): void
|
|
{
|
|
$gate->policy('Modules\Routing\Models\EvRoute', RoutePolicy::class);
|
|
}
|
|
}
|