mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-06-15 05:22:44 +01:00
24 lines
521 B
PHP
24 lines
521 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.
|
|
*
|
|
* @deprecated Use REST endpoint instead
|
|
*/
|
|
public function delete(Organization $organization): void
|
|
{
|
|
/** @see ValidateOrganizationDeletion */
|
|
app(DeletionService::class)->deleteOrganization($organization);
|
|
}
|
|
}
|