You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
499 B

2 years ago
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. class SettingServiceProvider extends ServiceProvider
  5. {
  6. /**
  7. * Register services.
  8. *
  9. * @return void
  10. */
  11. public function register()
  12. {
  13. }
  14. /**
  15. * Bootstrap services.
  16. *
  17. * @return void
  18. */
  19. public function boot()
  20. {
  21. $this->app->bind('settings', function(){
  22. // todo: get settings from shared database
  23. return ['real'];
  24. });
  25. }
  26. }