File: D:/HostingSpaces/SBogers10/beat-the-barn.komma.nl/app/Partners/PartnerComposer.php
<?php namespace App\Partners;
class PartnerComposer
{
/** @var PartnerService $partnerService */
private $partnerService;
public function __construct()
{
$this->partnerService = app()->make(PartnerService::class);
}
public function getAll($view)
{
$view->with('allPartners', $this->partnerService->getAllPartners());
}
public function getHighlighted($view)
{
$view->with('highlightedPartners', $this->partnerService->getHighlightedPartners());
}
}