Open greatislander opened 3 years ago
Looking at this (https://github.com/laravel-arcanist/arcanist/issues/6#issuecomment-892909574) it seems like the commentor's proposed approach for LiveWire would also involve bypassing Arcanist's route registration. So I guess that's my question—what would be the best way to do so?
Thanks!
This currently isn't supported, unfortunately. The route registration is fairly static. I'm leaving this issue open since I'm gathering feedback on what I should improve in version 1.0 (which will almost be a complete rewrite).
I'm looking at Arcanist for a project which needs to create multilingual routes to support different locales. For example, I'd need something like:
/en/forms/profile/1/about-me
/fr/formulaires/profil/1/a-propos
Is there a way to override the default
registerRoutes
method to handle multilingual routes? My project uses Laravel Multilingual Routes, but I think any solution to this use case in Arcanist should be as agnostic as possible. Perhaps an option might be to allow an integrator to bypass Arcanist's automatic registration of routes and document the process for creating all necessary routes independently in aroutes/arcanist.php
file or something like that.