123456789101112131415161718192021222324252627282930 |
- <?php
- /*
- * This file is part of the Jiannei/lumen-api-starter.
- *
- * (c) Jiannei <longjian.huang@foxmail.com>
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
- namespace App\Repositories\Transformers;
- use App\Models\Device;
- use App\Models\Earning;
- use App\Models\Wallet;
- use App\Repositories\Enums\DeviceLineEnum;
- use App\Repositories\Enums\DeviceLuTypeEnum;
- use App\Repositories\Enums\DeviceStatusEnum;
- use App\Repositories\Enums\DeviceUseStatusEnum;
- use App\Repositories\Enums\DeviceWaterLevelEnum;
- use League\Fractal\TransformerAbstract;
- class WalletTransformer extends TransformerAbstract
- {
- public function transform(Wallet $model)
- {
- return $model->toArray();
- }
- }
|