Closed kennethsantianez closed 5 months ago
Hi Kenneth,
Came across this issue because I happened to have the same question. Any chance you might have already solved the issue and can share it with me (and the world)?
I have for your requirements an solution. give me 2-3 days to implement the whish from kennethsantianez
please let me know the structure of your package
your-package/routes/... your naming conventions, perhaps a screenshot is enough
please let me know the structure of your package
Currently I use this structure. Is this enough for you?
module-name-web.php
module-name-api.php
NameController.php
yes thats enough
then I'll set up bootraiser so that your requirements work. I'm working on the adjustable routes at the moment anyway
protected function bootingRoutes(?PackageConfig $packageConfig = null): void
All modular does is require
the route file, so I don't think this is a modular issue. Is it possible that old routes are cached? Try php artisan route:clear
and see if that fixes it…
Right, I think it was something with caching because I don't have this issue anymore.
Hi, first of all thank you for a wonderful package.
I am planning to build a modularize application as an
api
endpoints only.I have successfully created a sub module, named Sitio. Below is my code inside the generated default filename: sitio-routes.php
But the output of the command:
php artisan route:list
, did not add the middlewareapi
for the above route. I suspect that theapi
middleware didn't work. What configuration do I need to add on my setup, soapi
middleware will function?There is no context in the documentation related to
api
routing as well.Can anyone point me to the right direction or did I miss something? Your help is highly appreciated.