1SET configuration variables at runtime:
2class AppServiceProvider extends ServiceProvider
3{
4 public function boot()
5 {
6 View::share('key', 'value');
7 Schema::defaultStringLength(191);
8 $company=DB::table('company')->where('id',1)->first();
9 config(['yourconfig.company' => $company]);
10 }
11}
12
13USE:
14config('yourconfig.company');