Closed yadue closed 8 years ago
It took me a while to figure out what you're asking, but I get what you mean now :)
You've renamed /public
to /app
, and, domain.com
maps to the /
, not /app
.
Thinking how to implement.
@yadue
Set the "absolute" option to true and set your correct application url in config/app.php. Only for laroute >= 2.0.
Just provide a "prefix" option in configurations.
If app sits in subdirectory ie: domain.com/app/api/get-users (where /app/ is the main public dir then routes are generated incorrectly pointing to domain.com/api/get-users. Generator does not look up for routes in subdirectories like usual laravel router.