adrema/app/Member/DeleteAction.php

17 lines
269 B
PHP
Raw Normal View History

2021-06-24 00:12:47 +02:00
<?php
namespace App\Member;
2022-09-05 11:37:54 +02:00
use App\Setting\NamiSettings;
2023-08-14 23:48:38 +02:00
use Lorisleiva\Actions\Concerns\AsAction;
2021-06-24 00:12:47 +02:00
class DeleteAction
2021-06-24 00:12:47 +02:00
{
2023-08-14 23:48:38 +02:00
use AsAction;
2021-06-24 00:12:47 +02:00
2023-08-15 00:17:17 +02:00
public function handle(int $namiId): void
2021-06-24 00:12:47 +02:00
{
2023-08-14 23:48:38 +02:00
app(NamiSettings::class)->login()->deleteMember($namiId);
2021-06-24 00:12:47 +02:00
}
}