unisharp / laravel-settings Goto Github PK
View Code? Open in Web Editor NEWPersistent key-value storage for Laravel, json value supported. l10n supported.
License: MIT License
Persistent key-value storage for Laravel, json value supported. l10n supported.
License: MIT License
thanks my Bro for this package,
but i have question about cache , how can i edit it and reset the time of cache expire
Same as title.
Since Laravel 6 array_get() is deprecated. Now Arr::get() is actual.
Hello i came across this wonderful project, and was wondering if dere could be a way to build a mobile app for it easily.
I want to use the settings in my scheduled tasks but I'm unable to get it working. Shouldn't I use the facade in this instance?
Hi,
Thank so much for this nice package,
I've a suggestion :
It's a good idea to add a function that retrieves a value from a file config when it doesn't exist in Setting table,
Example:
$value = Setting::get('file.name'); // It returns config('file.name').
Thanks :)
I'm trying to set a parameter but an error occurs :
Target [Unisharp\Setting\SettingStorageContract] is not instantiable while building [\Unisharp\Setting\Setting]
I needed to add this in order to make settings save
class EloquentStorage
protected $primaryKey = null; public $incrementing = false;
Hi
I am getting the above error when try to access the get method via Settings object.
Setting::get('key');
Installed everything, migrated, but when I try to set a Setting it gives me this error:
Class 'App\Http\Controllers\Admin\Setting' not found
I'm using Laravel 5.4.
Explanation:
If I have never called Setting::set('my.setting', true);
and wanna retrieve value with default like this: Setting::get('my.setting', false);
, that will return me not false
as expected, but null
.
Issue goes away if I stop using dot.notation for key name and default value works as a charm.
Examples:
Setting::get('my_setting', false);
- gives me false
as default if there is no mysetting
Setting::get('my.setting', false);
- gives me null
as default if there is no mysetting
, but hey WTF?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.