for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Providers;
use Config;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
class SettingsServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
if(Schema::hasTable('settings'))
$settings = DB::table('settings')->get();
foreach($settings as $setting)
Config([$setting->key => $setting->value]);
}
* Bootstrap services.
public function boot()
//