Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbrandB authored and github-actions[bot] committed Jun 17, 2024
1 parent 38ffdb1 commit 003817f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/ItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class ItemController extends Controller
*/
public function index(Request $request)
{
// return File::json(base_path('questions.json'))['name'];
// return File::json(base_path('questions.json'))['name'];

$builder = Item::query()->with( 'attributes.attributeType');
$builder = Item::query()->with('attributes.attributeType');
$filters = $request->input('filters');
foreach ($filters ?? [] as $attributeCategoryId => $attributeIds) {
$builder->whereHas('attributes', static function ($query) use ($attributeCategoryId, $attributeIds): void {
Expand Down

0 comments on commit 003817f

Please sign in to comment.