UseResource
class UseResource
Declare the resource class for a model using an attribute.
When placed on a model class that uses the TransformsToResource trait, the specified resource will be used when calling the model's toResource() method.
Methods
__construct(string $class)
Create a new attribute instance.
Details
at line 31
__construct(string $class)
Create a new attribute instance.