class Illuminate / Http / Resources / Json / AnonymousResourceCollection
You are viewing an older version of the documentation. For the latest, please visit master documentation.

AnonymousResourceCollection

Extends

Properties

public

$collects string

The name of the resource being collected.

Default: null

Methods

public

__construct ( $resource , $collects ) : void

Create a new anonymous resource collection.

Parameters

  • $resource mixed
  • $collects string