PHP code example of itmosoft / laravel-settings

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

    

itmosoft / laravel-settings example snippets

 bash
php artisan migrate
 bash
php artisan vendor:publish --tag=itmosoft-settings-config
 php
Settings::set('site_name', 'ITMOSOFT');
Settings::set('maintenance_mode', false);
Settings::set('supported_languages', ['en', 'ur']);
 php
$siteName = Settings::get('site_name', 'My Website');

$maintenanceMode = Settings::get('maintenance_mode', false);

$languages = Settings::get('supported_languages', ['en']);
 php
$deleted = Settings::forget('site_name');
 php
return [
    'table' => 'itmosoft_settings',
];