ShippingServiceProvider.php 884 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace Webkul\Shipping\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. class ShippingServiceProvider extends ServiceProvider
  5. {
  6. /**
  7. * Register services.
  8. *
  9. * @return void
  10. */
  11. public function register()
  12. {
  13. include __DIR__.'/../Http/helpers.php';
  14. $this->registerConfig();
  15. }
  16. /**
  17. * Bootstrap services.
  18. *
  19. * @return void
  20. */
  21. public function boot()
  22. {
  23. $this->loadMigrationsFrom(
  24. dirname(__DIR__).'/Database/Migrations'
  25. );
  26. }
  27. /**
  28. * Register package config.
  29. *
  30. * @return void
  31. */
  32. protected function registerConfig()
  33. {
  34. $this->mergeConfigFrom(
  35. dirname(__DIR__).'/Config/carriers.php', 'carriers'
  36. );
  37. $this->mergeConfigFrom(
  38. dirname(__DIR__) . '/Config/system.php', 'core'
  39. );
  40. }
  41. }