Skip to content

Latest commit

 

History

History
88 lines (68 loc) · 4.49 KB

1-Installation-and-Setup.md

File metadata and controls

88 lines (68 loc) · 4.49 KB

1. Installation

Table of contents

  1. Installation and Setup
  2. Configuration
  3. Usage
  4. FAQ

Version Compatibility

Laravel Localization
Laravel v9.* Localization v9.x
Laravel v8.* Localization v8.x
Laravel v7.* Localization v7.x
Laravel v6.* Localization v6.x
Laravel v5.8 Localization v5.x
Laravel v5.7 Localization v4.x
Laravel v5.6 Localization v3.x
Laravel v5.5 Localization v2.x
Laravel v5.4 Localization v1.x
Laravel v5.3 Localization v0.x
Laravel v5.2 Localization v0.x
Laravel v5.1 Localization v0.x
Laravel v5.0 Localization v0.x

Composer

You can install this package via Composer by running this command:

composer require arcanedev/localization

PHP extensions:

Laravel

Setup

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.

Artisan commands

To publish the config & view files, run this command:

php artisan vendor:publish --provider="Arcanedev\Localization\LocalizationServiceProvider"