-
-
Notifications
You must be signed in to change notification settings - Fork 66
Advanced Scoped Options - Multi-site (domain localization & slug localization) #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I added a Here are the updated functions :
Updated the register function line 28 : And for now, I can access all my urls from my table above. Do you think I might have broken something ? I will keep testing and give you updates accordingly. |
Hello, A PR is always welcome. When I was looking through my code for your question, I actually just discovered the bug with The whole scoped config feature needs more testing and probably needs to be tweaked here and there. One problem you should double check is if your routes have duplicate names, because you use duplicate locales. I can give this some deeper thought later today. |
Thanks for your reply, I will continue working on this in the next days/weeks :) I am now trying to have this urls working :
I added this two routes to my
Translation is working well, I have done a foreach of my categories and urls are ok but I have a 404 when accessing my URLs, I need to figure out why this is happening EDIT 1 :
Yes you are right for hasCustomSlugs. Will update this has well.
I think with my route naming i am ok ? |
Could you show me a more complete example of your route registration? |
EDIT : my bad... i removed the $ sign and everything is working well!! Here are the example : web.php
php artisan route:list
|
Hello @ivanvermeyen I was waiting Laravel 11 to start this new website, so I will update this issue according to my finds. There is an error on the README for Laravel 11 configuration : |
Woops, that's what I get for copy-pasting :) |
Hello @ivanvermeyen I have been working on my new website since last year, I am almost done. Since then, I have been using a "modded" version of your package with :
I have hundreds of routes, with 3 sites, I use a mix of blade/livewire views, and I haven't detected a single bug all year. Are you still maintaining this package ? Can I do a PR for the updates I made above ? What is missing to merge the livewire-support branch ? Livewire is now widely used, so it will ne nice to have that merged on the main branch. Hope you're well! Thanks you |
Hello, Greetings |
Oh, I wasn't expecting that news... My deepest condolences. His work helped me a lot and saved me a lot of time, I'm going to make a fork and try to maintain it the best as i can. Thanks for your reply. |
Uh oh!
There was an error while loading. Please reload this page.
I have a requirement for a website I am building. Like #21 but not exactly the same. I am building a "multi-site", some of the sites use domain localization, others use slugs).
I wanted to use Scoped Options to do something like this :
Do you think it will be possible to update the Scoped Options to make it support the domains in "supported_locales" ? In my use case config will never be used, only Scoped Options.
I would love to build this for this package and make a PR. If you are ok with that I would love to have some hints/indications on the way you see this.
The text was updated successfully, but these errors were encountered: