Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

DBC areas to controller #14

Merged
merged 2 commits into from
Apr 2, 2016
Merged

Conversation

avengerweb
Copy link
Contributor

No description provided.

@@ -31,7 +33,7 @@ public function __construct(TCAPI $api)
*
* @param Request $request
* @param int $id
* @return Achievement|array|\Illuminate\Database\Eloquent\Collection|\Illuminate\Database\Eloquent\Model|\Illuminate\Database\Query\Builder|static[]
* @return Achievement|array
*/
public function getAchievements(Request $request, $id = 0) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need a Request object as argument.
The global function request() returns this object.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Laravel IOC, too and code style.

@FrancescoBorzi FrancescoBorzi merged commit 84d4d98 into FrancescoBorzi:master Apr 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants