generated from panliang/owl-admin-starter
27 lines
610 B
PHP
27 lines
610 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class BannerResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
'title' => $this->title,
|
|
'picture' => $this->picture,
|
|
'description' => $this->description,
|
|
'place_id' => $this->place_id,
|
|
'link_config' => $this->link_config,
|
|
];
|
|
}
|
|
}
|