first commit

This commit is contained in:
Ariyutta
2026-08-07 10:47:09 +07:00
commit 1c094fbe7f
11630 changed files with 1580900 additions and 0 deletions
@@ -0,0 +1,24 @@
<?php
namespace App\Http\Resources\Sanggahan;
use Illuminate\Http\Resources\Json\ResourceCollection;
class SanggahanCollection extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request $request
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
*/
public function toArray($request)
{
return [
'code' => 200,
'status' => 'success',
'message' => 'Berhasil mengambil data',
'data' => SanggahanResource::collection($this->collection)
];
}
}