mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-05-07 20:32:26 +00:00
22 lines
469 B
PHP
22 lines
469 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Actions\Jetstream;
|
|
|
|
use App\Models\Organization;
|
|
use App\Service\DeletionService;
|
|
use Laravel\Jetstream\Contracts\DeletesTeams;
|
|
|
|
class DeleteOrganization implements DeletesTeams
|
|
{
|
|
/**
|
|
* Delete the given team.
|
|
*/
|
|
public function delete(Organization $organization): void
|
|
{
|
|
/** @see ValidateOrganizationDeletion */
|
|
app(DeletionService::class)->deleteOrganization($organization);
|
|
}
|
|
}
|