Example #1
0
 /**
  * Bootstrap the application events.
  *
  * @return void
  */
 public function boot()
 {
     $this->loadViewsFrom(__DIR__ . '/../resources/views', 'cruddy');
     $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'cruddy');
     $this->publishes([__DIR__ . '/../public' => public_path('cruddy')], 'public');
     $this->publishes([__DIR__ . '/../resources/views' => base_path('resources/views/vendor/cruddy')], 'views');
     $this->publishes([__DIR__ . '/../config/cruddy.php' => config_path('cruddy.php')], 'config');
     $this->registerRoutes($this->app['router'], $this->app['config']);
     Entity::setEventDispatcher($this->app->make('events'));
 }