class UseResourceCollection

Declare the resource collection class for a model using an attribute.

When placed on a model class, collections of this model will use the specified resource collection class when calling toResourceCollection().

Methods

__construct(string $class)

Create a new attribute instance.

Details

at line 31
__construct(string $class)

Create a new attribute instance.

Parameters

string $class