mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-26 18:25:09 +01:00
27 lines
608 B
PHP
27 lines
608 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Api\v1\Resources;
|
||
|
|
||
|
use Illuminate\Http\Resources\Json\ResourceCollection;
|
||
|
|
||
|
class TwoFAccountExportCollection extends ResourceCollection
|
||
|
{
|
||
|
/**
|
||
|
* The resource that this resource collects.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
public $collects = TwoFAccountExportResource::class;
|
||
|
|
||
|
/**
|
||
|
* Transform the resource collection into an array.
|
||
|
*
|
||
|
* @param \Illuminate\Http\Request $request
|
||
|
* @return \Illuminate\Support\Collection<int|string, TwoFAccountExportResource>
|
||
|
*/
|
||
|
public function toArray($request)
|
||
|
{
|
||
|
return $this->collection;
|
||
|
}
|
||
|
}
|