Skip to content

Laravel database config. Lets you set custom config settings in the database. Useful to let your users dynamically change mail settings, for example.

License

Notifications You must be signed in to change notification settings

Vynatu/Database-Config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This package lets you save some config items dynamically into the database. It is useful when you want to make an interface to let your users change mail settings, or other types of configuration on the fly.

Installation

composer require vynatu/database-config

Then, add the service provider to app.php:

<?php 

'providers' => [
    ...
    Vynatu\DatabaseConfig\ConfigServiceProvider::class,
]
php artisan migrate

Vynatu/Database-Config does not require an alias. It replaces the default config() or \Config::class bindings.

Usage

<?php

// To permanently save items in the database
config()->set('mail.driver', 'mailgun', true); // The last argument sets wether or not to make this change permanent.

About

Laravel database config. Lets you set custom config settings in the database. Useful to let your users dynamically change mail settings, for example.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages