PHP Classes

File: src/helpers.php

Recommend this page to a friend!
  Classes of Moamen Eltouny  >  Laravel Settings  >  src/helpers.php  >  Download  
File: src/helpers.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel Settings
Store and retrieve setting values for applications
Author: By
Last change:
Date: 1 year ago
Size: 287 bytes
 

Contents

Class file image Download
<?php

use Pharaonic\Laravel\Settings\Classes\Settings;

/**
 * Getting Settings Object
 *
 * @return Pharaonic\Laravel\Settings\Classes\Settings
 */
function settings()
{
    if (!
app()->has('Settings'))
       
app()->instance('Settings', new Settings);

    return
app('Settings');
}