laravel-localized-routes
laravel-localized-routes copied to clipboard
⭐️ A convenient way to set up and use localized routes in a Laravel app.
Hello, Ive problems using livewire. All works fine, but when I type the input, data refresh and dissapear data from views/livewire/filtro. When I click on url, data comes well. Ive...
Add the ability to configure custom slugs values for locales, in addition to localized domains. Maybe something in the lines of: ```php 'supported-locales' => ['en', 'nl'], 'domains' => [ 'en'...
Hello, I suggest to implement `Route::is()` and `Route::has()` to check the current route. Actually I did a workaround: `Route::is('login')` became `Route::is(app()->getLocale() . '.login')` `Route::has('register')` became `Route::has(app()->getLocale() . '.register')` But this...
Thanks for this awesome package! 👍 I'm trying to figure this out for a long time... I have 2 locales, `['en', 'he']`. I set `omit_url_prefix_for_locale` to `'en'`, so the `en`...
Hey guys, Apologies for this, but after a few hours I can't manage to route bind models that use this package translatable trait. My goal here is to make the...
Enable the combined use of localized domains and slugs. Fictional use case: | Locale | URL | Description | | ------- | ----------------------- | ------------------ | | `en` | `https://example.be/en`...
When adding the `SetLocale` middleware that comes with this package, it makes sense that the detection "just works". Right now there is some basic detection logic in this package in...
It would be convenient to have a short `Route::isFallback()` method, for example when generating a locale switcher like this: ```blade @foreach(config('localized-routes.supported-locales') as $locale) @if ((Route::isLocalized() || Route::isFallback()) && ! App::isLocale($locale))...
Hello! I have added the following languages: `'supported-locales' => ['en', 'uk'], 'redirect_to_localized_urls' => true, 'use_localizer' => true,`. How can I redirect from index to `site.com/uk/` OR `site.com/en/`? ````
Support Livewire (#58) Attempt to create a fresh Request from the current URL. If this works we can pass `Livewire::originalUrl()` when the `{locale}/livewire/message/{name}` endpoint is accessed. Unfortunately `Livewire::originalUrl()` does not...