Skip to content

Commit

Permalink
Return a collection
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 13, 2017
1 parent 0049b79 commit a0328dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Modules/Page/Http/Controllers/Api/PageTemplatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Modules\Page\Http\Controllers\Api;

use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Modules\Page\Services\FinderService;
use Modules\Workshop\Manager\ThemeManager;
Expand All @@ -24,7 +25,7 @@ public function __construct(ThemeManager $themeManager, FinderService $finder)
$this->finder = $finder;
}

public function __invoke()
public function __invoke(Request $request)
{
return response()->json($this->getTemplates());
}
Expand All @@ -48,7 +49,7 @@ private function getTemplates()
}
}

return $templates;
return collect($templates);
}

/**
Expand Down

0 comments on commit a0328dd

Please sign in to comment.