The Localization package has a few system requirements:
- PHP >= 7.0
PHP extensions:
- ext_intl : Needed to use the
Localeclass. (http://php.net/manual/en/class.locale.php)
| Localization | Laravel |
|---|---|
You can install this package via Composer by running this command:
composer require arcanedev/localizationNOTE : 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"