Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] 返回值类型可配置 #661

Closed
overtrue opened this issue Apr 24, 2017 · 3 comments
Closed

[4.0] 返回值类型可配置 #661

overtrue opened this issue Apr 24, 2017 · 3 comments

Comments

@overtrue
Copy link
Collaborator

overtrue commented Apr 24, 2017

  1. 选择:array / collection
  2. 自定义函数 / 钩子
@mingyoung mingyoung added this to the 4.0 milestone Apr 27, 2017
@overtrue
Copy link
Collaborator Author

  • response_type
    • collection
    • array
    • object
    • raw
    • 自定义类名

@mingyoung
Copy link
Collaborator

@overtrue
要不都返回 array?
比如基于 laravel-wechat 再写了一个 Laravel 包,包里面有个: $app->user->get('xxx')['nickname']
如果是数组的话这样是没问题的,但是如果用户自定义 response_type 为其他的话那就会报错了🤣

@overtrue
Copy link
Collaborator Author

@mingyoung 想想办法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants