PHP code example of alive2212 / laravel-setting-service

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

    

alive2212 / laravel-setting-service example snippets


$setting->store([
    'test.controller.app' => '1',
],auth()->id(),null,['operators']);

return $setting
    ->setStartDateTime(Carbon::now()->addYears(-1))
    ->setScope('operator')
    ->getArray();