codigo actual del servidor, con avances de joan

This commit is contained in:
Jose Sanchez
2023-08-07 15:52:04 -04:00
commit 3cd9b8bbe8
3070 changed files with 532255 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
];
}
}