PHP code example of tripteki / laravelphp-setting-profile
1. Go to this page and download the library: Download tripteki/laravelphp-setting-profile 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-profile example snippets
use Tripteki\SettingProfile\Contracts\Repository\Admin\ISettingProfileEnvironmentRepository;
use Tripteki\SettingProfile\Contracts\Repository\ISettingProfileRepository;
$environmentRepository = app(ISettingProfileEnvironmentRepository::class);
// $environmentRepository->create([ "variable" => "photo", "value" => "...", ]); //
// $environmentRepository->create([ "variable" => "frame", "value" => "...", ]); //
// $environmentRepository->create([ "variable" => "background", "value" => "...", ]); //
// $environmentRepository->create([ "variable" => "headerground", "value" => "...", ]); //
// $environmentRepository->create([ "variable" => "theme", "value" => "...", ]); //
// $environmentRepository->create([ "variable" => "logo", "value" => "...", ]); //
// $environmentRepository->create([ "variable" => "font", "value" => "...", ]); //
// $environmentRepository->delete("font"); //
// $environmentRepository->update("font", [ "value" => "...", ]); //
// $environmentRepository->get("font"); //
// $environmentRepository->all(); //
$repository = app(ISettingProfileRepository::class);
// $repository->setUser(...); //
// $repository->getUser(); //
// $repository->update("photo", "..."); //
// $repository->update("frame", "..."); //
// $repository->update("background", "..."); //
// $repository->update("headerground", "..."); //
// $repository->update("theme", "light"); //
// $repository->update("theme", "dark"); //
// $repository->update("logo", "..."); //
// $repository->update("font", "..."); //
// $repository->all(); //
php artisan vendor:publish --tag=tripteki-laravelphp-setting-profile-migrations
php artisan migrate
php artisan vendor:publish --tag=tripteki-laravelphp-setting-profile-tests