mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10:41 -05:00
44 lines
869 B
PHP
44 lines
869 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Actions\Jetstream\DeleteUser;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Laravel\Jetstream\Jetstream;
|
|
|
|
class JetstreamServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
$this->configurePermissions();
|
|
|
|
Jetstream::deleteUsersUsing(DeleteUser::class);
|
|
}
|
|
|
|
/**
|
|
* Configure the permissions that are available within the application.
|
|
*/
|
|
protected function configurePermissions(): void
|
|
{
|
|
Jetstream::defaultApiTokenPermissions(['read']);
|
|
|
|
Jetstream::permissions([
|
|
'create',
|
|
'read',
|
|
'update',
|
|
'delete',
|
|
]);
|
|
}
|
|
}
|