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/lyrcphp artisan vendor:publish --provider="Tado\Lyrc\LyrcServiceProvider"-
Add the
Tado\Lyrc\LyrcServiceProvider::classtoconfig/app.phpfile in providers list -
Set your configurations in the file
config/lyrc.php
-
After setting up your YAML file path in
config/lyrcand 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