Laravel Translatable is a useful package to manage localized routes and translatable models.

laravel package model

Features

  • Automatically register the routes for each locale you wish to support.

  • Optionally remove the locale slug from the URL for your main language.

  • Generate localized route URL's using the trans_route() helper.

  • Allow routes to be cached.

Installation

You can install this package using Composer.

composer require sertxudeveloper/laravel-translatable

Source Code

https://github.com/sertxudeveloper/laravel-translatable?ref=learninglaravel