PHP code example of pixeo / laravel-settings

1. Go to this page and download the library: Download pixeo/laravel-settings library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pixeo / laravel-settings example snippets





return [
    /*
     * The model that is used to fetch the settings
     */
    'model' => Pixeo\Settings\Setting::class,

    /**
     * The cache key the package will use
     */
    'cache_key' => 'pixeo.settings',
];

 php
\Pixeo\Settings\Setting::create(['key' => 'foo', 'value' => 'bar']);
echo setting('foo'); // => bar