Remove MembershipController

This commit is contained in:
Philipp Lang 2023-10-13 15:49:42 +02:00
parent 37a6dd8330
commit 2fbad36700
1 changed files with 0 additions and 25 deletions

View File

@ -1,25 +0,0 @@
<?php
namespace App\Membership;
use App\Http\Controllers\Controller;
use App\Member\Member;
use App\Member\Membership;
use App\Setting\NamiSettings;
use Illuminate\Http\RedirectResponse;
class MembershipController extends Controller
{
public function destroy(Member $member, Membership $membership, NamiSettings $settings): RedirectResponse
{
$api = $settings->login();
$api->deleteMembership(
$member->nami_id,
$api->membership($member->nami_id, $membership->nami_id)
);
$membership->delete();
$member->syncVersion();
return redirect()->back();
}
}