1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App\Http\Resources;
- use Illuminate\Http\Resources\Json\Resource as BaseResource;
- class Resource extends BaseResource
- {
- /**
- * Transform the resource into an array.
- *
- * @param \Illuminate\Http\Request $request
- * @return array
- */
- public function toArray($request)
- {
- return parent::toArray($request);
- }
- public function with($request)
- {
- return [
- 'code' => 200,
- 'message' => 'OK',
- ];
- }
- }
|