diff --git a/src/Support/HashidsFactory.php b/src/Support/HashidsFactory.php index 6ed9581..213426c 100644 --- a/src/Support/HashidsFactory.php +++ b/src/Support/HashidsFactory.php @@ -13,6 +13,7 @@ namespace Amamarul\Hashids\Support; use Amamarul\Hashids\Support\Hashids\Hashids; +use Illuminate\Support\Arr; /** * This is the Hashids factory class. @@ -47,10 +48,10 @@ public function make(array $config) protected function getConfig(array $config) { return [ - 'salt' => array_get($config, 'salt', ''), - 'length' => array_get($config, 'length', 0), - 'alphabet' => array_get($config, 'alphabet', ''), - 'prefix' => array_get($config, 'prefix', null), + 'salt' => Arr::get($config, 'salt', ''), + 'length' => Arr::get($config, 'length', 0), + 'alphabet' => Arr::get($config, 'alphabet', ''), + 'prefix' => Arr::get($config, 'prefix', null), ]; }