SmsManagerServiceProvider.php 665 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\framework\Toplan\Sms;
  3. class SmsManagerServiceProvider extends \Toplan\Sms\SmsManagerServiceProvider
  4. {
  5. public function boot()
  6. {
  7. $this->publishes([
  8. __DIR__ . '/../../../../vendor/toplan/laravel-sms/src/config/laravel-sms.php' => config_path('laravel-sms.php'),
  9. ], 'config');
  10. $this->publishes([
  11. __DIR__ . '/../../../../vendor/toplan/laravel-sms/migrations/' => database_path('/migrations'),
  12. ], 'migrations');
  13. if (config('laravel-sms.route.enable', true)) {
  14. require __DIR__ . '/../../../../vendor/toplan/laravel-sms/src/Toplan/LaravelSms/routes.php';
  15. }
  16. //require __DIR__ . '/validations.php';
  17. $this->phpSms();
  18. }
  19. }