Delete routine [skip ci]

This commit is contained in:
James Cole
2014-07-23 08:16:04 +02:00
parent cc71a1116a
commit 1a9c44f7f9
5 changed files with 70 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ class EloquentLimitRepository implements LimitRepositoryInterface
public function find($limitId)
{
return \Limit::with('limitrepetitions')->where('limits.id', $limitId)->leftJoin('components', 'components.id', '=', 'limits.component_id')
->where('components.user_id', \Auth::user()->id)->first();
->where('components.user_id', \Auth::user()->id)->first(['limits.*']);
}
public function store($data)