mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 20:52:44 +08:00
25 lines
446 B
PHP
25 lines
446 B
PHP
<?php
|
|
|
|
namespace App\Services\Logic\User\Console;
|
|
|
|
use App\Services\Logic\Service;
|
|
use App\Validators\Connect as ConnectValidator;
|
|
|
|
class ConnectDelete extends Service
|
|
{
|
|
|
|
public function handle($id)
|
|
{
|
|
$user = $this->getLoginUser();
|
|
|
|
$validator = new ConnectValidator();
|
|
|
|
$connect = $validator->checkConnect($id);
|
|
|
|
$validator->checkOwner($user->id, $connect->user_id);
|
|
|
|
$connect->delete();
|
|
}
|
|
|
|
}
|