Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Conf Laravel Package

miladimos/conf

View on GitHub
Deep Wiki
Context7

Laravel config package

Install

  1. How to install
composer require miladimos/conf
  1. Open your conf/app.php and add the following to the providers array:
Miladimos\Conf\Providers\ConfServiceProvider::class,
  1. Run the command below to install package:
php artisan conf:install

helpers:

conf('key') // return value of config

services:

use Miladimos\Conf\Services\ConfigJsonService;

ConfigJsonService::all(); // return all stored configs in config.json file
ConfigJsonService::show($id); // receive id of config and return one config
ConfigJsonService::store($date); 
ConfigJsonService::update($date, $id); 
ConfigJsonService::delete($id); // receive id of config and  delete

routes:

GET  api/version/conf/all          -> name: conf.all // return all configs
GET  api/version/conf/show/{id}    -> name: conf.show // return single config
POST api/version/conf/update/{id}  -> name: conf.update // update
POST api/version/conf/store        -> name: conf.store // store
GET  api/version/conf/delete/{id}  -> name: conf.delete // delete

update and store receive these datas

[
    'key' => 'yourkey',
    'value' => 'yourvalue',
    'description' => 'description',
]

then give to config.json file read,write permissions or change owner file to current user:

sudo chown -R $USER config.json
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui