src/Output/BaseOutput.php
public function index($identifiers = null)
    {
        $parents = func_get_args();

        if ($this->failsSecurity()) {
            return $this->responseDenied();
        }

        if ($this->failsParentMatch($parents)) {
            return $this->responseNotFound();
        }

        $entities = $parents ? $this->resource->allByParent(end($parents)):$this->resource->all();

        return $this->response($entities, 200);
    }
public function index($identifiers = null)
    {
        $parents = func_get_args();

        if ($this->failsSecurity()) {
            return $this->responseDenied();
        }

        if ($this->failsParentMatch($parents)) {
            return $this->responseNotFound();
        }

        $entities = $parents ? $this->resource->allByParent(end($parents)):$this->resource->all();

        return $this->response($entities, 200);
    }
public function index ( $ identifiers = null ) { $ parents = func_get_args ( ) ; if ( $ this -> failsSecurity ( ) ) { return $ this -> responseDenied ( ) ; } if ( $ this -> failsParentMatch ( $ parents ) ) { return $ this -> responseNotFound ( ) ; } $ entities = $ parents ? $ this -> resource -> allByParent ( end ( $ parents ) ) : $ this -> resource -> all ( ) ; return $ this -> response ( $ entities , 200 ) ; }
Shows all of a resource.

@param mixed $identifiers,... all the resource identifiers starting with
the parents if applicable down to the requested resource
@return string
Shows all of a resource .