src/NilPortugues/Laravel5/JsonApi/Controller/JsonApiTrait.php
protected function totalAmountResourceCallable()
    {
        return function () {
            $idKey = $this->getDataModel()->getKeyName();

            return $this->getDataModel()->query()->count([$idKey]);
        };
    }
protected function totalAmountResourceCallable()
    {
        return function () {
            $idKey = $this->getDataModel()->getKeyName();

            return $this->getDataModel()->query()->count([$idKey]);
        };
    }
protected function totalAmountResourceCallable ( ) { return function ( ) { $ idKey = $ this -> getDataModel ( ) -> getKeyName ( ) ; return $ this -> getDataModel ( ) -> query ( ) -> count ( [ $ idKey ] ) ; } ; }
Returns the total number of results available for the current resource.

@return callable
@codeCoverageIgnore
Returns the total number of results available for the current resource .