PHP code example of bkstar123 / laratune
1. Go to this page and download the library: Download bkstar123/laratune 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/ */
bkstar123 / laratune example snippets
artisan migrate
Setting::get('sitename', 'Default Site Name'); // same result as config('settings.sitename', 'Default Site Name')
Setting::set('sitename', 'YourSiteName'); // Define a key & value pair in settings table and load it to config('settings')
Setting::all(); // Get a collection of all records in settings table
Setting::forget('sitename'); // Delete a key & value pair from setting tables and unload it from config('settings')
Setting::purge(); // Truncate settings table and unload the entire config('settings') array