Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 3, 2023
1 parent 57aa135 commit 2993a75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
namespace App\Http\Controllers;

use App\Http\Resources\Articles\ArticleCardResource;
use App\Http\Resources\BCRProjectCardResource;
use App\Http\Resources\ProjectCardResource;
use App\Models\Article;
use App\Models\Organization;
use App\Models\Project;
Expand All @@ -25,14 +27,14 @@ public function index()
->isApproved()
->count(),

'projects' => ProjectCardsResource::collection(
'projects' => ProjectCardResource::collection(
Project::whereIsOpen()
->inRandomOrder()
->limit(12)
->get()
),

'bcr_projects' => BCRProjectCardsResource::collection(
'bcr_projects' => BCRProjectCardResource::collection(
Project::whereIsOpen()
// TODO: ->whereOrganizationIsBCR()
->limit(12)
Expand Down

0 comments on commit 2993a75

Please sign in to comment.