Illuminate\Support\Collection::make PHP Method

make() public static method

Create a new collection instance if the value isn't one already.
public static make ( mixed $items = [] ) : static
$items mixed
return static
    public static function make($items = [])
    {
        return new static($items);
    }

Usage Example

 /**
  * QueryFilter constructor.
  *
  * @param InputParser $parser
  * @param Collection $collection
  * @param Container $app
  */
 public function __construct(InputParser $parser, Collection $collection, Container $app)
 {
     $this->parser = $parser;
     $this->collection = $collection;
     $this->filters = $parser->getFilters();
     $this->sorts = $parser->getSorts();
     $this->appliedFilters = $collection->make();
     $this->appliedSorts = $collection->make();
     $this->app = $app;
 }
All Usage Examples Of Illuminate\Support\Collection::make