adrema/app/Member/Actions/NamiDeleteMemberAction.php

17 lines
287 B
PHP
Raw Permalink Normal View History

2021-06-24 00:12:47 +02:00
<?php
2023-08-15 23:00:01 +02:00
namespace App\Member\Actions;
2021-06-24 00:12:47 +02:00
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
2023-08-15 23:00:01 +02:00
class NamiDeleteMemberAction
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
}
}