diff --git a/README.md b/README.md index dd3050f..7bfb33a 100644 --- a/README.md +++ b/README.md @@ -15,18 +15,18 @@ $ composer require media24si/eswrapper Register the ESWrapperServiceProvider to the providers array in `config/app.php` ``` php -'Media24si\ESWrapper\ESWrapperServiceProvider', +Media24si\ESWrapper\ESWrapperServiceProvider::class, ``` Publish vendor files (config file): ``` bash -$ art vendor:publish +$ php artisan vendor:publish ``` **Optional** Register the facade in `config/app.php`: ``` php -'Elastic' => 'Media24si\ESWrapper\Facades\ESWrapper' +'Elastic' => Media24si\ESWrapper\Facades\ESWrapper::class ``` ## Usage diff --git a/composer.json b/composer.json index 3e2dcea..a69b4d3 100644 --- a/composer.json +++ b/composer.json @@ -11,9 +11,9 @@ } ], "require": { - "php": ">=5.4.0", + "php": ">=5.6.0", "laravel/framework": "5.*", - "elasticsearch/elasticsearch": "2.0.*@dev" + "elasticsearch/elasticsearch": "~2.0" }, "autoload": { "psr-4": {