18 lines
340 B
PHP
18 lines
340 B
PHP
<?php
|
|
|
|
namespace App\Actions\UserGitConnections;
|
|
|
|
use App\Models\UserGitConnection;
|
|
|
|
class DeleteUserGitConnection
|
|
{
|
|
public function handle(UserGitConnection $gitConnection): string
|
|
{
|
|
$label = "{$gitConnection->account_login} @ {$gitConnection->base_url}";
|
|
|
|
$gitConnection->delete();
|
|
|
|
return $label;
|
|
}
|
|
}
|