PHP code example of pakpromo / laravel-settings

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

    

pakpromo / laravel-settings example snippets


setting()->get('promo');
setting()->get('promo', 'default');
setting()->put('promo', 'snippet');
setting()->delete('promo');

Setting::get('promo');
Setting::get('promo', 'default');
Setting::put('promo', 'snippet');
Setting::delete('promo');
bash
php artisan vendor:publish --provider="PakPromo\LaravelSettings\SettingsServiceProvider" --tag=settings-config
bash
php artisan vendor:publish --provider="PakPromo\LaravelSettings\SettingsServiceProvider" --tag=settings-migration
bash
php artisan migrate