Closed CharlieBrownCharacter closed 1 month ago
One way might be to override the global route
to check if we have a locale and add it but this seems a bit odd.
Was not aware we can use URL::defaults(['locale' => $request->user()->locale]);
.
This is described in the docs. https://laravel.com/docs/11.x/urls
Hey y'all 👋
First of all, thank you very much for such an amazing package. I'm trying to add locale to my project and looking in https://github.com/thefireflytech/filament-blog/blob/4b01f72d16e1e750e7c0e8cd848a437bd629c826/routes/web.php#L9 it looks like we could simply use
route.prefix
infilamentblog.php
configuration file but when adding{locale}/blogs
there, it breaks in the view because when callingroute()
it expects alocale
to be passed.Is there any way I can make this package support locale?