Actualizacion de Diseño Logins y Parte de Registro Negocios

This commit is contained in:
kquiroz
2023-08-23 16:11:21 -04:00
parent d71e89adae
commit 38bf59042d
3498 changed files with 691264 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Http\Resources\V2;
use Carbon\Carbon;
use Illuminate\Http\Resources\Json\ResourceCollection;
class DeliveryBoyCollection extends ResourceCollection
{
public function toArray($request)
{
return [
'data' => $this->collection->map(function ($data) {
return [
'id' => $data->id,
'user_id' => $data->user_id,
'total_collection' => $data->total_collection,
'total_earning' => $data->total_earning,
];
})
];
}
public function with($request)
{
return [
'success' => true,
'status' => 200
];
}
}