2025-04-09 23:03:16 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
2025-06-13 23:06:13 +03:00
|
|
|
use App\Models\GameList;
|
|
|
|
|
use App\Policies\GameListPolicy;
|
2025-04-12 17:18:33 +03:00
|
|
|
use Illuminate\Pagination\Paginator;
|
2025-06-13 23:06:13 +03:00
|
|
|
use Illuminate\Support\Facades\Gate;
|
2025-04-09 23:03:16 +03:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Register any application services.
|
|
|
|
|
*/
|
|
|
|
|
public function register(): void
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Bootstrap any application services.
|
|
|
|
|
*/
|
|
|
|
|
public function boot(): void
|
|
|
|
|
{
|
2025-04-12 17:18:33 +03:00
|
|
|
Paginator::useBootstrap();
|
2025-06-13 23:06:13 +03:00
|
|
|
Gate::policy(GameList::class, GameListPolicy::class);
|
2025-04-09 23:03:16 +03:00
|
|
|
}
|
|
|
|
|
}
|