钱包农场 API 开发手记 八 土豆
2018-04-08 00:00
204 查看
模型&数据库迁移
php artisan make:model PotatoLog -m php artisan migrate
php artisan make:migration change_type_on_potato_settings_table --table=potato_settings
路由
// 土豆收支明细 $api->get('potatos', 'PotatoLogsController@index') ->name('api.potatos.index');
控制器
touch app/Transformers/PotatoLogTransformer.php php artisan make:controller Api/V1/PotatoLogsController
相关文章推荐
- 钱包农场 API 开发手记 六 更新用户信息
- 钱包农场 API 开发手记 十一 订单
- 钱包农场 API 开发手记 十 商品
- 钱包农场 API 开发手记 九 金豆
- 钱包农场 API 开发手记 二 SMS
- 钱包农场 API 开发手记 一 开篇
- 钱包农场 API 开发手记 十三 收货地址
- 钱包农场 API 开发手记 四 JWT
- 钱包农场 API 开发手记 三 微信登录
- 钱包农场 API 开发手记 七 绑定手机
- 钱包农场 API 开发手记 十二 文章
- WO+开放平台:API调用开发手记(话费计费接口2.0)
- 微信小程序开发手记之六:API
- WO+开放平台:API调用开发手记(关于签名字段)
- TWS API 开发手记——连接到TWS平台
- WO+开放平台:API调用开发手记(话费计费接口2.0)
- 关于上一篇日志《TWS API 开发手记——连接到TWS平台》的修正
- sweetalert api中文开发文档和手册
- Android 开发手记二 C可执行程序编译实例(转帖)
- 开发帮助文档Api