feat: add PanelSetting to the dash panel
This commit is contained in:
14
app/Helper/ArrayHelper.php
Normal file
14
app/Helper/ArrayHelper.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Helper;
|
||||
|
||||
class ArrayHelper
|
||||
{
|
||||
/**
|
||||
* Get value from array by key, return null if not found.
|
||||
*/
|
||||
public static function getValueFromArray(string $key, array $array)
|
||||
{
|
||||
return $array[$key] ?? null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user