Hi
I have this route:
PHP Code:
$routes->group('cms', static function ($routes) {
$routes->match(['get', 'post'], 'login', [Login::class, 'login'], ['as' => 'login']);
});
When I go to cms/login (get), everything works and I get my login screen.
But when I post my credentials there and post the form (without action parameter, so the same page), I get the error:
What am I missing here?
Code:
404 - File Not Found
Can't find a route for 'post: cms/login'.