Awards Administration

This commit is contained in:
Servetas George
2018-01-28 21:19:35 +02:00
parent e57f0cb234
commit 78724e981c
16 changed files with 456 additions and 0 deletions

18
app/Http/Resources/Award.php Executable file
View File

@@ -0,0 +1,18 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\Resource;
class Award extends Resource
{
public function toArray($request)
{
return [
'id' => $this->id,
'title' => $this->title,
'description' => $this->description,
'image' => $this->image,
];
}
}