Add dingo/api component and jwt-auth component#23
Open
ety001 wants to merge 20 commits intoProtobiaTech:dev-websitefrom
ety001:dingo_api
Open
Add dingo/api component and jwt-auth component#23ety001 wants to merge 20 commits intoProtobiaTech:dev-websitefrom ety001:dingo_api
ety001 wants to merge 20 commits intoProtobiaTech:dev-websitefrom
ety001:dingo_api
Conversation
supgeek-rod
reviewed
May 31, 2017
.gitignore
Outdated
|
|
||
| /public/bower-assets | ||
| .DS_Store | ||
| composer.lock |
Contributor
There was a problem hiding this comment.
为了保持 vendor 的一致,不应该忽略 composer.lock 文件
supgeek-rod
reviewed
May 31, 2017
|
|
||
| $user = $this->auth->user(); | ||
|
|
||
| $timelines = $query->get()->each(function($item, $key)use($user){ |
supgeek-rod
reviewed
May 31, 2017
| if (!$user) { | ||
| $item->is_like = false; | ||
| } else { | ||
| $item->is_like = TimelineLike::where(['timeline_id' => $item->id, 'user_id' => $user->id])->count() ? true : false; |
Contributor
There was a problem hiding this comment.
count() 或以替换成 exists()
Author
|
Test URI:
|
Author
|
Response Data Structure: Successhttp status code : 200 Failedhttp status code : 4xx or 5xx |
added 2 commits
June 1, 2017 19:38
Author
|
找到一个方法,需要传入一个自定义的函数来实现返回数据的自定义格式。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Need to do: