You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.4 KiB
44 lines
1.4 KiB
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class CollectionResource extends JsonResource
|
|
{
|
|
/**
|
|
* 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,
|
|
"name" => $this->name,
|
|
"public" => $this->public,
|
|
"disk" => $this->disk,
|
|
"count" => $this->count,
|
|
"tmp_support" => $this->tmp_support,
|
|
"remove_tmp_time" => $this->remove_tmp_time,
|
|
"max_file_size" => $this->max_file_size,
|
|
"min_file_size" => $this->min_file_size,
|
|
"max_width" => $this->max_width,
|
|
"min_width" => $this->min_width,
|
|
"max_height" => $this->max_height,
|
|
"min_height" => $this->min_height,
|
|
"alt_required" => $this->alt_required,
|
|
"description_required" => $this->description_required,
|
|
"count" => $this->count,
|
|
"exts" => $this->exts,
|
|
"ext" => $this->ext,
|
|
"mimetypes" => $this->mimetypes,
|
|
"model" => $this->model,
|
|
"expire_date" => $this->expire_date,
|
|
"created_at" => $this->created_at,
|
|
"updated_at" => $this->updated_at,
|
|
"deleted_at" => $this->deleted_at
|
|
];
|
|
}
|
|
}
|