migrate to gtea from bistbucket
This commit is contained in:
17
public/restaurant/Modules/Gateways/Library/Helper.php
Normal file
17
public/restaurant/Modules/Gateways/Library/Helper.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
if (! function_exists('configSettings')) {
|
||||
function configSettings($key, $settingsType)
|
||||
{
|
||||
try {
|
||||
$config = DB::table('settings')->where('key_name', $key)
|
||||
->where('settings_type', $settingsType)->first();
|
||||
} catch (Exception $exception) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (isset($config)) ? $config : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user