app/Providers/AppServiceProvider.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
        if (Schema::hasTable('settings')) {
            $settings = Setting::first();
            Config::set('settings', $settings);
        }
    }
public function boot ( ) { if ( Schema :: hasTable ( 'settings' ) ) { $ settings = Setting :: first ( ) ; Config :: set ( 'settings' , $ settings ) ; } }
Bootstrap any application services.
Bootstrap any application services .