mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireCloud.git
synced 2026-06-01 00:19:09 +08:00
47 lines
1,014 B
PHP
47 lines
1,014 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Actions\Jetstream\DeleteUser;
|
|
use Illuminate\Support\Facades\Vite;
|
|
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);
|
|
|
|
Vite::prefetch(concurrency: 3);
|
|
}
|
|
|
|
/**
|
|
* Configure the permissions that are available within the application.
|
|
*/
|
|
protected function configurePermissions(): void
|
|
{
|
|
Jetstream::defaultApiTokenPermissions(['read']);
|
|
|
|
Jetstream::permissions([
|
|
// 'create',
|
|
'read',
|
|
// 'update',
|
|
// 'delete',
|
|
]);
|
|
}
|
|
}
|