chinleung / laravel-multilingual-routes

A package to handle multilingual routes in your Laravel application.
https://github.com/chinleung/laravel-multilingual-routes-demo
MIT License
402 stars 25 forks source link

Trim starting slash for translation key #21

Closed chinleung closed 4 years ago

chinleung commented 4 years ago

When registering a route with a starting slash, the slash is not trimmed when loading from the translation files.

Route::multilingual('/products',  'ShowProductsController');

The above attempts to load routes./products instead of routes.products from the translations.