Locker\Repository\Base\EloquentRepository::index PHP Method

index() public method

Gets all of the available models with the options.
public index ( array $opts ) : [Model]
$opts array
return [Model]
    public function index(array $opts)
    {
        return $this->where($opts)->get()->each(function (Model $model) {
            return $this->format($model);
        });
    }