diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d3da6f..98b931e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `cybercog/laravel-optimus` will be documented in this fil ## [Unreleased] +## [3.4.0] - 2019-09-04 + +### Added + +- ([#20]) Laravel 6 support + ## [3.3.0] - 2019-02-26 ### Added @@ -57,7 +63,8 @@ All notable changes to `cybercog/laravel-optimus` will be documented in this fil Initial release -[Unreleased]: https://github.com/cybercog/laravel-optimus/compare/3.3.0...master +[Unreleased]: https://github.com/cybercog/laravel-optimus/compare/3.4.0...master +[3.4.0]: https://github.com/cybercog/laravel-optimus/compare/3.3.0...3.4.0 [3.3.0]: https://github.com/cybercog/laravel-optimus/compare/3.2.0...3.3.0 [3.2.0]: https://github.com/cybercog/laravel-optimus/compare/3.1.0...3.2.0 [3.1.0]: https://github.com/cybercog/laravel-optimus/compare/3.0.0...3.1.0 @@ -65,6 +72,7 @@ Initial release [2.1.0]: https://github.com/cybercog/laravel-optimus/compare/2.0.0...2.1.0 [2.0.0]: https://github.com/cybercog/laravel-optimus/compare/1.0.0...2.0.0 +[#20]: https://github.com/cybercog/laravel-optimus/pull/20 [#15]: https://github.com/cybercog/laravel-optimus/pull/15 [#14]: https://github.com/cybercog/laravel-optimus/pull/14 [#13]: https://github.com/cybercog/laravel-optimus/pull/13 diff --git a/composer.json b/composer.json index 8f6ae8b..80d6270 100644 --- a/composer.json +++ b/composer.json @@ -36,15 +36,15 @@ "require": { "php": "^7.1.3", "graham-campbell/manager": "^4.0", - "illuminate/contracts": "5.5.*|5.6.*|5.7.*|5.8.*", - "illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*", + "illuminate/contracts": "5.5.*|5.6.*|5.7.*|5.8.*|^6.0", + "illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*|^6.0", "jenssegers/optimus": "^0.2.2" }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.10", "graham-campbell/testbench": "^5.0", "mockery/mockery": "^1.0", - "phpunit/phpunit": "^6.5|^7.0" + "phpunit/phpunit": "^6.5|^7.0|^8.0" }, "autoload": { "psr-4": { diff --git a/src/OptimusFactory.php b/src/OptimusFactory.php index b92581e..403c614 100644 --- a/src/OptimusFactory.php +++ b/src/OptimusFactory.php @@ -13,6 +13,7 @@ namespace Cog\Laravel\Optimus; +use Illuminate\Support\Arr; use Jenssegers\Optimus\Optimus; class OptimusFactory @@ -41,9 +42,9 @@ public function make(array $config): Optimus protected function getConfig(array $config): array { return [ - 'prime' => array_get($config, 'prime', 0), - 'inverse' => array_get($config, 'inverse', 0), - 'random' => array_get($config, 'random', 0), + 'prime' => Arr::get($config, 'prime', 0), + 'inverse' => Arr::get($config, 'inverse', 0), + 'random' => Arr::get($config, 'random', 0), ]; }