laravel-multilingual-routes
laravel-multilingual-routes copied to clipboard
A package to handle multilingual routes in your Laravel application.
**Describe the bug** I'm using a model with a translatable name (using [spatie/laravel-translatable](https://github.com/spatie/laravel-translatable/)) which is used as the source for a translatable slug (using the `HasTranslatableSlug` trait of [spatie/laravel-sluggable](https://github.com/spatie/laravel-sluggable/)). However,...
**Describe the bug** When defining an route that is only available in view locales it throws an Error when calling `localized_route()` **To Reproduce** Steps to reproduce the behavior: 1. Define...
Maximum function nesting level of '256' reached, aborting!
Is it possible to use multiple (sub)domains instead of url? For example: laravel.nl/home instead of laravel.com/nl/home I hope to hear from you soon.
What's the best way to deal with [Resource Controllers](https://laravel.com/docs/9.x/controllers#resource-controllers)? Since there is no `Route::multilingualResource()` at the moment, I've solved it like this. Before: ``` Route::resource('companies', \App\Http\Controllers\CompanyController::class) ``` After: ``` Route::multilingual('companies',...