GithubHelp home page GithubHelp logo

unisharp / laravel-settings Goto Github PK

View Code? Open in Web Editor NEW
105.0 10.0 26.0 50 KB

Persistent key-value storage for Laravel, json value supported. l10n supported.

License: MIT License

PHP 99.02% Makefile 0.98%
setting config key-value locale laravel

laravel-settings's Issues

Queries are doubled

Hi all, I'm not sure if it is only me.

When i checked my debug bar I noticed the queries are doubled whenever I retrieve a settings.

image

ToDo : Get config file value if doesn't exist in Setting

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 :)

Api for mobile development

Hello i came across this wonderful project, and was wondering if dere could be a way to build a mobile app for it easily.

Dot.Notation name as key & default value for get()

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?

what about cache ?!

thanks my Bro for this package,
but i have question about cache , how can i edit it and reset the time of cache expire

Error of using !

I'm trying to set a parameter but an error occurs :

Target [Unisharp\Setting\SettingStorageContract] is not instantiable while building [\Unisharp\Setting\Setting]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.