2026-08-04 22:23:54 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Modules\Routing\Providers;
|
|
|
|
|
|
2026-08-05 00:27:41 +07:00
|
|
|
use Illuminate\Contracts\Auth\Access\Gate;
|
2026-08-04 22:23:54 +07:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
2026-08-05 00:27:41 +07:00
|
|
|
use Modules\Routing\Policies\RoutePolicy;
|
2026-08-04 22:23:54 +07:00
|
|
|
|
|
|
|
|
class RoutingServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
public function register(): void {}
|
|
|
|
|
|
2026-08-05 00:27:41 +07:00
|
|
|
public function boot(Gate $gate): void
|
|
|
|
|
{
|
|
|
|
|
$gate->policy('Modules\Routing\Models\EvRoute', RoutePolicy::class);
|
|
|
|
|
}
|
2026-08-04 22:23:54 +07:00
|
|
|
}
|