PHP Classes

File: app/Helpers/settings.php

Recommend this page to a friend!
  Packages of Nemeth Zoltan   Cards API PHP   app/Helpers/settings.php   Download  
File: app/Helpers/settings.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Cards API PHP
Manage trading cards, decks, games, and creators
Author: By
Last change:
Date: 2 months ago
Size: 399 bytes
 

Contents

Class file image Download
<?php
/**
 * Webtech-solutions 2025, All rights reserved.
 */

use App\Models\WebsiteSetting;

if (!
function_exists('setting')) {
   
/**
     * Get a website setting value
     *
     * @param string $key
     * @param mixed $default
     * @return mixed
     */
   
function setting(string $key, mixed $default = null): mixed
   
{
        return
WebsiteSetting::get($key, $default);
    }
}