laravel-settings | Laravel 5.1.x Persistent Settings | Caching library

 by   efriandika PHP Version: v1.2.5 License: MIT

kandi X-RAY | laravel-settings Summary

kandi X-RAY | laravel-settings Summary

laravel-settings is a PHP library typically used in Server, Caching applications. laravel-settings has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Laravel 5.1.x Persistent Settings (Database + Cache)
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              laravel-settings has a low active ecosystem.
              It has 57 star(s) with 30 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 8 open issues and 12 have been closed. On average issues are closed in 44 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of laravel-settings is v1.2.5

            kandi-Quality Quality

              laravel-settings has no bugs reported.

            kandi-Security Security

              laravel-settings has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              laravel-settings is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              laravel-settings releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed laravel-settings and discovered the below as its top functions. This is intended to give you an instant insight into laravel-settings implemented functionality, and help decide if they suit your requirements.
            • Set a setting value .
            • Register the settings .
            • Fetch setting value .
            • Bootstrap the application .
            • Store the settings .
            • Create the settings table .
            • Get all values
            • Check cache file .
            • Flush the cache .
            • Provides a list of settings
            Get all kandi verified functions for this library.

            laravel-settings Key Features

            No Key Features are available at this moment for laravel-settings.

            laravel-settings Examples and Code Snippets

            Laravel-Settings,How to Install
            PHPdot img1Lines of Code : 8dot img1License : Permissive (MIT)
            copy iconCopy
            composer require efriandika/laravel-settings
            
               "require": {
                  "efriandika/laravel-settings": "1.*"
               }
            
            'Efriandika\LaravelSettings\SettingsServiceProvider',
            
            'Settings'  => Efriandika\LaravelSettings\Facades\Settings::class,
            
            $ php artisan  
            Laravel-Settings,Fallback to Laravel Config (available in v1.2.0)
            PHPdot img2Lines of Code : 7dot img2License : Permissive (MIT)
            copy iconCopy
            // Change your config/settings.php
            'fallback'   => true
            
            /* 
             * If the value with key => mail.host is not found in cache or DB of Larave Settings
             * it will return same value as config::get('mail.host');
             */     
            Settings::get('mail.host');
              
            Laravel-Settings,How to Use it?
            PHPdot img3Lines of Code : 7dot img3License : Permissive (MIT)
            copy iconCopy
            Settings::set('key', 'value');
            
            $value = Settings::get('key');
            
            $value = Settings::get('key', 'Default Value');
            
            $value = settings('key');
            $value = settings('key', 'default value');
            
            Settings::forget('key');
            
            Settings::flush();
              

            Community Discussions

            QUESTION

            Persistently changing app config settings programmatically in Laravel.
            Asked 2018-Apr-10 at 09:04

            In an application I am building, I want to include a few custom artisan commands for updating application config settings like the app name, and database connections. This is mostly because some people that will need to be able to modify these settings are not familiar with Laravel (some of them are still college students). So, I want them to be able to easily modify these settings by simply calling an artisan command.

            A problem I am currently running into is that updating config settings using the config() function is not persistent. So, I did a quick search on the internet for a solution. I found this solution on a similar question here on Stack Overflow. However, when importing the library, composer notifies me that the project has been abandoned and it would be best to find a different solution.

            So, is there another solution to help with this task?

            Thanks in advance.

            ...

            ANSWER

            Answered 2018-Apr-10 at 09:04

            This solution does not use artisan file but uses command line interface.

            If python is available in your environment, you can move the settings to be modified to your .env file and than install "python-dotenv[cli]" package to modify them without changing your source code.

            You can install the package via pip:

            Source https://stackoverflow.com/questions/49746750

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install laravel-settings

            Require this package with composer (Packagist) using the following command:.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/efriandika/laravel-settings.git

          • CLI

            gh repo clone efriandika/laravel-settings

          • sshUrl

            git@github.com:efriandika/laravel-settings.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Caching Libraries

            caffeine

            by ben-manes

            groupcache

            by golang

            bigcache

            by allegro

            DiskLruCache

            by JakeWharton

            HanekeSwift

            by Haneke

            Try Top Libraries by efriandika

            learn-spring-data-es

            by efriandikaJava

            ngx-demo

            by efriandikaTypeScript

            microfrontend-poc

            by efriandikaHTML