SongResource
extends JsonResource
in package
uses
HasJsonCollection
Tags
Table of Contents
Methods
- collection() : mixed
- toArray() : array<string, mixed>
- Transform the resource into an array.
Methods
collection()
public
static collection(mixed $resource) : mixed
Parameters
- $resource : mixed
toArray()
Transform the resource into an array.
public
toArray(Request $request) : array<string, mixed>
Parameters
- $request : Request