Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 567 Bytes

make-collection.md

File metadata and controls

22 lines (18 loc) · 567 Bytes

beyond:make:collection

Creates a new Laravel collection for a model.

Note

You need to add the collection to your model

public function newCollection(array $models = []): Collection
{
    return new UserCollection($models);
}

Signature

beyond:make:collection {name} {--force}

Parameters Description
name The name of your collection
Flags Description
--force Overwrite existing file