2021-06-28 22:09:41 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Member;
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
2022-02-12 16:16:56 +01:00
|
|
|
use Illuminate\Http\RedirectResponse;
|
2021-06-28 22:09:41 +02:00
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
class MemberConfirmController extends Controller
|
|
|
|
{
|
2022-02-12 16:16:56 +01:00
|
|
|
public function __invoke(Request $request, Member $member): RedirectResponse
|
|
|
|
{
|
2021-06-28 22:09:41 +02:00
|
|
|
$member->update(['confirmed_at' => now()]);
|
|
|
|
|
|
|
|
return redirect()->route('member.index');
|
|
|
|
}
|
|
|
|
}
|