PHP-084 / Intermediate
Handling logout with GET (CSRF)
Why is this a problem?
<img src="/logout"> can force a logout.
How to fix it
php
Route::post('/logout', [AuthCtrl::class, 'logout']); // Include @csrf in the form