Giter Club home page Giter Club logo

laravel-conf's Introduction

Anurag's GitHub stats

laravel-conf's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

laravel-conf's Issues

[Garf\LaravelConf\Contracts\Factory] is not instantiable

It didn't work for me, at all, after a lot of issues I found this solution, I don't know how it worked but I got the idea from the other laravel Facade config files like "view" .

Solution:
in [/vendor/garf/laravel-conf/src/ConfFacade.php]
change this line :
return \Garf\LaravelConf\Contracts\Factory::class;
to this :
return "conf";

I don't know if this is the best solution.

Delete a key

Hello,
Please can you help with an information, how can I delete a key from json file.
Thanks

Possibility of adding custom filepath

Can you please replace your constructor with this:

    public function __construct($filepath)
    {
        $this->file = ($filepath) ? $filepath : storage_path('app/conf.json');
        if (empty($this->config)) {
            if (!file_exists($this->file)) {
                file_put_contents($this->file, json_encode([]));
            }
            $this->config = collect(json_decode(file_get_contents($this->file), true));
        }
    }

or other change so the config path to be customizable?

Update to Laravel 6

Update it to laravel 6, please!

This verson doesn't use array_add, array_set, etc. helpers, only via supporter Arr (Arr::add, Arr::set, Arr::forget...).

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.