2018-01-29 03:19:35 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
|
2020-03-23 21:31:35 +08:00
|
|
|
use App\Contracts\Resource;
|
|
|
|
|
|
|
|
class Award extends Resource
|
2018-01-29 03:19:35 +08:00
|
|
|
{
|
|
|
|
public function toArray($request)
|
|
|
|
{
|
|
|
|
return [
|
2018-03-20 09:50:40 +08:00
|
|
|
'id' => $this->id,
|
|
|
|
'title' => $this->title,
|
2018-01-29 03:19:35 +08:00
|
|
|
'description' => $this->description,
|
2018-03-20 09:50:40 +08:00
|
|
|
'image' => $this->image,
|
2018-01-29 03:19:35 +08:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|