From 1ff405b5f0f798d95c4be891f0f55fda0d7c8a99 Mon Sep 17 00:00:00 2001 From: Sourov Pal <85163889+sourovpal@users.noreply.github.com> Date: Tue, 26 Mar 2024 08:21:54 +0600 Subject: [PATCH] array_get() to Arr::get() --- src/Support/HashidsFactory.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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), ]; }