11# Laravel Localized Routes
22
3- [ ![ GitHub release] ( https://img.shields.io/github/release/codezero-be/laravel-localized-routes.svg?style=flat-square )] ( https://github.com/codezero-be/laravel-localized-routes/releases )
4- [ ![ Laravel] ( https://img.shields.io/badge/laravel-11-red?style=flat-square&logo=laravel&logoColor=white )] ( https://laravel.com )
5- [ ![ License] ( https://img.shields.io/packagist/l/codezero/laravel-localized-routes.svg?style=flat-square )] ( LICENSE.md )
6- [ ![ Build Status] ( https://img.shields.io/github/actions/workflow/status/codezero-be/laravel-localized-routes/run-tests.yml?style=flat-square&logo=github&logoColor=white&label=tests )] ( https://github.com/codezero-be/laravel-localized-routes/actions )
7- [ ![ Code Coverage] ( https://img.shields.io/codacy/coverage/a5db8a1321664e67900c96eadc575ece/master?style=flat-square )] ( https://app.codacy.com/gh/codezero-be/laravel-localized-routes )
8- [ ![ Code Quality] ( https://img.shields.io/codacy/grade/a5db8a1321664e67900c96eadc575ece/master?style=flat-square )] ( https://app.codacy.com/gh/codezero-be/laravel-localized-routes )
9- [ ![ Total Downloads] ( https://img.shields.io/packagist/dt/codezero/laravel-localized-routes.svg?style=flat-square )] ( https://packagist.org/packages/codezero/laravel-localized-routes )
3+ [ ![ GitHub release] ( https://img.shields.io/github/release/opgginc/codezero-laravel-localized-routes.svg?style=flat-square )] ( https://github.com/opgginc/codezero-laravel-localized-routes/releases )
4+ [ ![ Laravel] ( https://img.shields.io/badge/laravel-12-red?style=flat-square&logo=laravel&logoColor=white )] ( https://laravel.com )
5+ [ ![ License] ( https://img.shields.io/packagist/l/opgginc/codezero-laravel-localized-routes.svg?style=flat-square )] ( LICENSE.md )
6+ [ ![ Build Status] ( https://img.shields.io/github/actions/workflow/status/opgginc/codezero-laravel-localized-routes/run-tests.yml?style=flat-square&logo=github&logoColor=white&label=tests )] ( https://github.com/opgginc/codezero-laravel-localized-routes/actions )
7+ [ ![ Total Downloads] ( https://img.shields.io/packagist/dt/opgginc/codezero-laravel-localized-routes.svg?style=flat-square )] ( https://packagist.org/packages/opgginc/codezero-laravel-localized-routes )
108
119[ ![ ko-fi] ( https://www.ko-fi.com/img/githubbutton_sm.svg )] ( https://ko-fi.com/R6R3UQ8V )
1210
1311A convenient way to set up and use localized routes in a Laravel app.
1412
13+ ## Important Note
14+
15+ This package is a fork of the original [ codezero/laravel-localized-routes] ( https://github.com/codezero-be/laravel-localized-routes ) created by Ivan Vermeyen. It was forked by OP.GG Inc. to maintain and extend its functionality after the unfortunate passing of Ivan. We are deeply grateful for Ivan's contribution to the Laravel community and hope to honor his legacy by continuing to maintain this package. Rest in peace, Ivan.
16+
1517## 📖 Table of Contents
1618
1719- [ Requirements] ( #-requirements )
@@ -53,8 +55,8 @@ A convenient way to set up and use localized routes in a Laravel app.
5355
5456## ✅ Requirements
5557
56- - PHP >= 8.1
57- - Laravel >= 10
58+ - PHP >= 8.1, >= 8.4
59+ - Laravel >= 10, >= 12
5860- Composer ^2.3 (for [ codezero/composer-preload-files] ( https://github.com/codezero-be/composer-preload-files ) )
5961
6062## ⬆ Upgrade
@@ -67,7 +69,7 @@ Check our [upgrade guide](UPGRADE.md) for instructions.
6769Install this package with Composer:
6870
6971``` bash
70- composer require codezero/ laravel-localized-routes
72+ composer require opgginc/codezero- laravel-localized-routes
7173```
7274
7375Laravel will automatically register the ServiceProvider.
@@ -159,7 +161,7 @@ Make sure to add it after `StartSession` and before `SubstituteBindings`.
159161The order of the middleware is important if you are using localized route keys (translated slugs)!
160162The session needs to be active when setting the locale, and the locale needs to be set when substituting the route bindings.
161163
162- ### Laravel 11 and newer :
164+ ### Laravel 11 and 12 :
163165
164166Add the middleware to the ` web ` middleware group in ` bootstrap/app.php ` .
165167
@@ -304,7 +306,7 @@ public function resolveRouteBinding($value, $field = null)
304306
305307### ☑ Translate Hard-Coded URI Slugs
306308
307- This package includes [ codezero/ laravel-uri-translator] ( https://github.com/codezero-be/ laravel-uri-translator ) .
309+ This package includes [ opgginc/codezero- laravel-uri-translator] ( https://github.com/opgginc/ codezero-laravel-uri-translator ) .
308310This registers a ` Lang::uri() ` macro that enables you to translate individual, hard-coded URI slugs.
309311Route parameters will not be translated by this macro.
310312
@@ -752,16 +754,17 @@ composer test
752754## ☕ Credits
753755
754756- [ Ivan Vermeyen] ( https://github.com/ivanvermeyen )
755- - [ All contributors] ( https://github.com/codezero-be/laravel-localized-routes/contributors )
757+ - [ OP.GG Inc.] ( https://github.com/opgginc )
758+ - [ All contributors] ( https://github.com/opgginc/codezero-laravel-localized-routes/contributors )
756759
757760## 🔒 Security
758761
759- If you discover any security related issues, please [ e-mail me ] ( mailto:ivan@codezero.be ) instead of using the issue tracker .
762+ If you discover any security related issues, please contact us via GitHub issues .
760763
761764## 📑 Changelog
762765
763766A complete list of all notable changes to this package can be found on the
764- [ releases page] ( https://github.com/codezero-be/ laravel-localized-routes/releases ) .
767+ [ releases page] ( https://github.com/opgginc/ codezero-laravel-localized-routes/releases ) .
765768
766769## 📜 License
767770
0 commit comments