PHP Classes

File: app/Support/helpers.php

Recommend this page to a friend!
  Classes of Wang   Tagydes   app/Support/helpers.php   Download  
File: app/Support/helpers.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Tagydes
E-commerce Web administration panel and API
Author: By
Last change:
Date: 1 year ago
Size: 549 bytes
 

Contents

Class file image Download
<?php

if (! function_exists('settings')) {
   
/**
     * Get / set the specified settings value.
     *
     * If an array is passed as the key, we will assume you want to set an array of values.
     *
     * @param array|string $key
     * @param mixed $default
     * @return mixed
     */
   
function settings($key = null, $default = null)
    {
        if (
is_null($key)) {
            return
app('anlutro\LaravelSettings\SettingStore');
        }

        return
app('anlutro\LaravelSettings\SettingStore')->get($key, $default);
    }
}