Made with ❤️ by tado°
- Require the Package
After creating your new Laravel application you can include the Lyrc package with the following commands:
composer require tadodotcom/lyrc
php artisan vendor:publish --provider="Tado\Lyrc\LyrcServiceProvider"
-
Add the
Tado\Lyrc\LyrcServiceProvider::class
toconfig/app.php
file in providers list -
Set your configurations in the file
config/lyrc.php
-
After setting up your YAML file path in
config/lyrc
and the path for the compiled file, run commandphp artisan tado:lyrc
. -
On your routes file
require 'path/to/compiled_routes.php';
And enjoy the simplicity of managing multi locale, big route files in your YAML files