Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

auliameiazizi's avatar

Always no routes defined in module router PHP practitioner

I already view a video about PHP practitioners in the part router. I think it must be can get the route instead of it always undefine like " Fatal error: Uncaught Exception: no routes define for this uri in C:\laragon\www\laracast-php-begin\Core\router.php:18 Stack trace: #0 C:\laragon\www\laracast-php-begin\index.php(15): router->direct('about') #1 {main} thrown in C:\laragon\www\laracast-php-begin\Core\router.php on line 18"

Index.php

core/router.php

0 likes
1 reply
jlrdw's avatar

Compare your code with Jeffrey's Github code, in case you typed something wrong.

Please or to participate in this conversation.