2018-01-29 03:19:35 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
|
2019-07-16 03:14:40 +08:00
|
|
|
class Award extends Response
|
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
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|