Code sync from Shipping Portal, independent deployment of Vue Polling, checkout from dillon/34-jenkins-vapor

This commit is contained in:
Dillon Ngo
2023-12-30 01:15:27 +08:00
parent 1ddf7923a5
commit 18df0e256b
37 changed files with 1281 additions and 23 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class JobResultResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'job_id' => $this->job_id,
'result' => $this->result,
];
}
}