Files
cleargame/app/Providers/AppServiceProvider.php
2025-06-13 23:06:13 +03:00

30 lines
579 B
PHP

<?php
namespace App\Providers;
use App\Models\GameList;
use App\Policies\GameListPolicy;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Paginator::useBootstrap();
Gate::policy(GameList::class, GameListPolicy::class);
}
}