Collective\Annotations\AnnotationsServiceProvider::modelScans PHP Метод

modelScans() публичный Метод

Get the classes to be scanned by the provider.
public modelScans ( ) : array
Результат array
    public function modelScans()
    {
        if ($this->scanEverything) {
            return $this->getAllClasses();
        }
        return $this->scanModels;
    }

Usage Example

 /**
  * Get the route definitions for the annotations.
  *
  * @return string
  */
 protected function getRouteDefinitions()
 {
     $scanner = $this->laravel->make('annotations.model.scanner');
     $scanner->setClassesToScan($this->provider->modelScans());
     return '<?php ' . PHP_EOL . PHP_EOL . $scanner->getModelDefinitions() . PHP_EOL;
 }