Laravel | Localization |
---|---|
You can install this package via Composer by running this command:
composer require arcanedev/localization
PHP extensions:
- ext_intl : Needed to use the
Locale
class. (http://php.net/manual/en/class.locale.php)
NOTE : The package will automatically register itself if you're using Laravel
>= v5.5
, so you can skip this section.
Once the package is installed, you can register the service provider in config/app.php
in the providers
array:
'providers' => [
...
Arcanedev\Localization\LocalizationServiceProvider::class,
],
No need to register the Localization facade, it's done automagically.
To publish the config & view files, run this command:
php artisan vendor:publish --provider="Arcanedev\Localization\LocalizationServiceProvider"