First commit for project

This commit is contained in:
2022-02-13 11:19:29 +01:00
commit d9c8d55505
106 changed files with 47789 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class ProjectResource extends JsonResource
{
public static $wrap = null;
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
*/
public function toArray($request)
{
return [
'id' => $this->id,
'title' => $this->title,
'categories' => $this->categories,
'author' => $this->author,
'image_url' => $this->image_url,
'release_data' => $this->release_data,
'project_url' => $this->project_url,
'project_version' => $this->project_version,
'description' => $this->description,
];
}
}