// Standard routes do not require CSRF tokens in forms now...
$router->any('legacyPostTest', function() {
var_dump($_POST);
});
// So I will need to group non-legacy routes and manually enforce CSRF middleware.
// Don't forget to remove this when switching CSRF middleware back to global stack!
$router->group(['middleware' => 'csrf'], function()
{
// These routes will require CSRF tokens in forms...
$router->any('postTest', function() {
var_dump($_POST);
});
});