PHP code example of oscarpasache / global-settings
1. Go to this page and download the library: Download oscarpasache/global-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/ */
oscarpasache / global-settings example snippets
return [
];
\OscarPasache\GlobalSettings::set("sitename", "Global Settings");
echo \OscarPasache\GlobalSettings::get("sitename");
bash
php artisan vendor:publish --tag="global-settings-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="global-settings-config"