mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 12:34:03 +00:00
31 lines
541 B
PHP
31 lines
541 B
PHP
<?php
|
|
namespace App\Classes\Modules\Accounts\Services;
|
|
|
|
|
|
use App\Models\UserInvitation;
|
|
|
|
class DeletesUserInvitation
|
|
{
|
|
/** @var UserInvitation */
|
|
private $repository;
|
|
|
|
/**
|
|
* DeletesUserInvitation constructor.
|
|
* @param UserInvitation $repository
|
|
*/
|
|
public function __construct(UserInvitation $repository)
|
|
{
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
|
|
public function execute(int $id ){
|
|
|
|
$userInvitation = $this->repository->findOrFail($id);
|
|
|
|
$userInvitation -> delete();
|
|
|
|
|
|
}
|
|
|
|
} |