mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
create/get upload request backend
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Domain\UploadRequest\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
@@ -12,16 +13,17 @@ class UploadRequestResource extends JsonResource
|
||||
'id' => $this->id,
|
||||
'type' => 'upload-request',
|
||||
'attributes' => [
|
||||
'folder_id' => $this->folder_id,
|
||||
'status' => $this->status,
|
||||
'email' => $this->email,
|
||||
'notes' => $this->notes,
|
||||
'folder_id' => $this->folder_id,
|
||||
'status' => $this->status,
|
||||
'email' => $this->email,
|
||||
'notes' => $this->notes,
|
||||
'url' => url("/request/$this->id/upload"),
|
||||
],
|
||||
'relationships' => [
|
||||
'user' => [
|
||||
'data' => [
|
||||
'id' => $this->user->id,
|
||||
'type' => 'user',
|
||||
'id' => $this->user->id,
|
||||
'type' => 'user',
|
||||
'attributes' => [
|
||||
'name' => $this->user->settings->name,
|
||||
'avatar' => $this->user->settings->avatar,
|
||||
|
||||
Reference in New Issue
Block a user