You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
932 B
50 lines
932 B
<?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.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
$this->configurePermissions();
|
|
|
|
Jetstream::deleteUsersUsing(DeleteUser::class);
|
|
}
|
|
|
|
/**
|
|
* Configure the permissions that are available within the application.
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function configurePermissions()
|
|
{
|
|
Jetstream::defaultApiTokenPermissions(['read']);
|
|
|
|
Jetstream::permissions([
|
|
'create',
|
|
'read',
|
|
'update',
|
|
'delete',
|
|
]);
|
|
}
|
|
}
|