Skip to content

Commit

Permalink
remove validation checking
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinwong90 committed Mar 23, 2018
1 parent 49c72a0 commit 471ba8c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,6 @@ protected function resourceResponse($model, $collection = false)
{
if ($collection)
{
abort_if (!$model instanceof \Illuminate\Support\Collection, 400,'$model must be collection');

return $this->resource::collection($model)->additional(['success'=>1]);
}

Expand Down

0 comments on commit 471ba8c

Please sign in to comment.