Files

25 lines
571 B
PHP
Raw Permalink Normal View History

2015-12-06 13:58:49 -05:00
<?php
namespace Pterodactyl\Providers;
use Laravel\Sanctum\Sanctum;
use Pterodactyl\Models\ApiKey;
2022-06-26 16:21:07 -04:00
use Pterodactyl\Models\Server;
use Pterodactyl\Policies\ServerPolicy;
2015-12-06 13:58:49 -05:00
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
2022-10-14 10:59:20 -06:00
* The model to policy mappings for the application.
2015-12-06 13:58:49 -05:00
*/
protected $policies = [
Server::class => ServerPolicy::class,
2015-12-06 13:58:49 -05:00
];
2023-02-23 12:30:16 -07:00
public function boot(): void
2015-12-06 13:58:49 -05:00
{
Sanctum::usePersonalAccessTokenModel(ApiKey::class);
2015-12-06 13:58:49 -05:00
}
}