/**
  * Bootstrap the application events.
  */
 public function boot()
 {
     Media::observe(new MediaObserver());
     $this->publishes([__DIR__ . '/../resources/config/laravel-medialibrary.php' => $this->app->configPath() . '/' . 'laravel-medialibrary.php'], 'config');
     if (!class_exists('CreateMediaTable')) {
         // Publish the migration
         $timestamp = date('Y_m_d_His', time());
         $this->publishes([__DIR__ . '/../resources/migrations/create_media_table.php.stub' => $this->app->basePath() . '/' . 'database/migrations/' . $timestamp . '_create_media_table.php'], 'migrations');
     }
 }