1. Go to this page and download the library: Download supplycart/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/ */
supplycart / settings example snippets
use Supplycart\Settings\Contracts\HasSettings as HasSettingsContract;
use Supplycart\Settings\Traits\HasSettings;
class User extends Model implements HasSettingsContract
{
use HasSettings;
public function getDefaultSettings(): array
{
return [];
}
}