PHP code example of anisaronno / laravel-settings

1. Go to this page and download the library: Download anisaronno/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/ */

    

anisaronno / laravel-settings example snippets


hasSettings(string $key);

getSettings(string $key);

getAllSettings();

setSettings(string $key, string $value);

updateSettings(string $key, string $value);

upsertSettings(string $key, string $value);

deleteSettings(string $key);
shell
php artisan vendor:publish --tag=settings-migration
shell
php artisan migrate
shell
php artisan db:seed --class=LaravelSettingsSeeder::class