REBELinBLUE\Deployer\Contracts\Repositories\GroupRepositoryInterface::getAll PHP Method

getAll() public method

public getAll ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection
    public function getAll();

Usage Example

Exemplo n.º 1
0
 /**
  * Generates the group listing for the view.
  *
  * @param View $view
  */
 public function compose(View $view)
 {
     $active_group = null;
     $active_project = null;
     if (isset($view->project) && !$view->project->is_template) {
         $active_group = $view->project->group_id;
         $active_project = $view->project->id;
     }
     $view->with('active_group', $active_group);
     $view->with('active_project', $active_project);
     $view->with('groups', $this->groupRepository->getAll());
 }
All Usage Examples Of REBELinBLUE\Deployer\Contracts\Repositories\GroupRepositoryInterface::getAll
GroupRepositoryInterface