original_string: public function fullBoot($package, $dir)
      {
          $this->mapRoutes($dir);
  
  
         if (file_exists($dir.'/views')) {
              $this->loadViewsFrom($dir.'/views', $package);
          }
  
          if (file_exists($dir.'/migrations')) {
              $this->publishes([
                  $dir.'/migrations' => base_path('database/migrations/')
              ], 'migrations');
          }
  
          if (file_exists($dir.'/seeds')) {
              $this->publishes([
                  $dir.'/seeds' => base_path('database/seeds/')
              ], 'seeds');
          }
  
          if (file_exists($dir."config/$package.php")) {
                  $this->mergeConfigFrom(
                      $dir."config/$package.php",
                      $package
               );
  
                  $this->publishes([
                       $dir.'/config' => base_path('config')
                      ], 'config');
          }
  
          if (file_exists($dir.'/lang')) {
  
              $this->publishes([
                  $dir.'/lang' => resource_path()."/lang/vendor/$package",
              ]);
  
              $this->loadTranslationsFrom(
                  $dir."/lang",
                  $package
               );
          }
  
  
          if (file_exists($dir.'/assets')) {
              $this->publishes([
                  $dir.'/assets' => base_path('resources/assets'),
              ], 'assets');
          }
  
  
          if(file_exists($dir.'/factories/ModelFactory.php')){
              require($dir.'/factories/ModelFactory.php');
          }
  
      }
code: public function fullBoot($package, $dir)
      {
          $this->mapRoutes($dir);
  
  
         if (file_exists($dir.'/views')) {
              $this->loadViewsFrom($dir.'/views', $package);
          }
  
          if (file_exists($dir.'/migrations')) {
              $this->publishes([
                  $dir.'/migrations' => base_path('database/migrations/')
              ], 'migrations');
          }
  
          if (file_exists($dir.'/seeds')) {
              $this->publishes([
                  $dir.'/seeds' => base_path('database/seeds/')
              ], 'seeds');
          }
  
          if (file_exists($dir."config/$package.php")) {
                  $this->mergeConfigFrom(
                      $dir."config/$package.php",
                      $package
               );
  
                  $this->publishes([
                       $dir.'/config' => base_path('config')
                      ], 'config');
          }
  
          if (file_exists($dir.'/lang')) {
  
              $this->publishes([
                  $dir.'/lang' => resource_path()."/lang/vendor/$package",
              ]);
  
              $this->loadTranslationsFrom(
                  $dir."/lang",
                  $package
               );
          }
  
  
          if (file_exists($dir.'/assets')) {
              $this->publishes([
                  $dir.'/assets' => base_path('resources/assets'),
              ], 'assets');
          }
  
  
          if(file_exists($dir.'/factories/ModelFactory.php')){
              require($dir.'/factories/ModelFactory.php');
          }
  
      }
code_tokens: public function fullBoot ( $ package , $ dir ) { $ this -> mapRoutes ( $ dir ) ; if ( file_exists ( $ dir . '/views' ) ) { $ this -> loadViewsFrom ( $ dir . '/views' , $ package ) ; } if ( file_exists ( $ dir . '/migrations' ) ) { $ this -> publishes ( [ $ dir . '/migrations' => base_path ( 'database/migrations/' ) ] , 'migrations' ) ; } if ( file_exists ( $ dir . '/seeds' ) ) { $ this -> publishes ( [ $ dir . '/seeds' => base_path ( 'database/seeds/' ) ] , 'seeds' ) ; } if ( file_exists ( $ dir . "config/$package.php" ) ) { $ this -> mergeConfigFrom ( $ dir . "config/$package.php" , $ package ) ; $ this -> publishes ( [ $ dir . '/config' => base_path ( 'config' ) ] , 'config' ) ; } if ( file_exists ( $ dir . '/lang' ) ) { $ this -> publishes ( [ $ dir . '/lang' => resource_path ( ) . "/lang/vendor/$package" , ] ) ; $ this -> loadTranslationsFrom ( $ dir . "/lang" , $ package ) ; } if ( file_exists ( $ dir . '/assets' ) ) { $ this -> publishes ( [ $ dir . '/assets' => base_path ( 'resources/assets' ) , ] , 'assets' ) ; } if ( file_exists ( $ dir . '/factories/ModelFactory.php' ) ) { require ( $ dir . '/factories/ModelFactory.php' ) ; } }
docstring: it replace most thing that you can in boot in provider for packages
  
  @param  string  $dir
  @return void
docstring_tokens: it replace most thing that you can in boot in provider for packages