Hello,
I'm sorry, I speak a little English.
Why not works?
File: /routes/web.php
<?php
$router->get('/', function () use ($router) {
return $router->app->version();
}); // it works: https://example.com
$router->get('test', function () use ($router) {
return 'hello, world';
}); // it not works: https://example.com/test (404 Not Found)
Thanks.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community