enabled() public method

Get all enabled modules.
public enabled ( ) : Collection
return Collection
Exemplo n.º 1
0
 /**
  * Register the module service provider file from all modules.
  *
  * @return void
  */
 public function register()
 {
     $modules = $this->repository->enabled();
     $modules->each(function ($module) {
         $this->registerServiceProvider($module);
         $this->autoloadFiles($module);
     });
 }
Exemplo n.º 2
0
 /**
  * Gets all enabled modules.
  *
  * @return array
  */
 public function enabled()
 {
     return $this->repository->enabled();
 }