feat: add ability to upload photos (#2132)

This commit is contained in:
Régis Freyd
2018-12-13 15:12:45 -05:00
committed by GitHub
parent a4e051e61c
commit 64a7e51f72
39 changed files with 1037 additions and 39 deletions
@@ -0,0 +1,24 @@
<?php
namespace App\Http\Resources\Photo;
use Illuminate\Http\Resources\Json\ResourceCollection;
class PhotoCollection extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request
* @return array
*/
public function toArray($request)
{
return [
'data' => $this->collection,
'links' => [
'self' => 'link-value',
],
];
}
}