PHP code example of tripteki / laravelphp-setting
1. Go to this page and download the library: Download tripteki/laravelphp-setting 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/ */
tripteki / laravelphp-setting example snippets
use Tripteki\Setting\Contracts\Repository\Admin\ISettingRepository as ISettingAdminRepository;
use Tripteki\Setting\Contracts\Repository\ISettingRepository;
$settingAdminRepository = app(ISettingAdminRepository::class);
// $settingAdminRepository->create([ "key" => "key", "value" => "...", ]); //
// $settingAdminRepository->delete("key"); //
// $settingAdminRepository->update("key", [ "value" => "...", ]); //
// $settingAdminRepository->get("key"); //
// $settingAdminRepository->all(); //
$repository = app(ISettingRepository::class);
// $repository->setUser(...); //
// $repository->getUser(); //
// $repository->setup("key", "value"); //
// $repository->setdown("key"); //
// $repository->all(); //
php artisan vendor:publish --tag=tripteki-laravelphp-setting-migrations
php artisan migrate
php artisan vendor:publish --tag=tripteki-laravelphp-setting-tests