adrema/app/Member/MemberConfirmController.php

16 lines
324 B
PHP
Raw Normal View History

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