Просмотр файла vendor/illuminate/http/Resources/Json/AnonymousResourceCollection.php
<?php namespace Illuminate\Http\Resources\Json; class AnonymousResourceCollection extends ResourceCollection { /** * The name of the resource being collected. * * @var string */ public $collects; /** * Create a new anonymous resource collection. * * @param mixed $resource * @param string $collects * @return void */ public function __construct($resource, $collects) { $this->collects = $collects; parent::__construct($resource); } }