<?php namespace App\Certificates;
class CertificateComposer
{
/** @var CertificateService $certificateService */
private $certificateService;
public function __construct()
{
$this->certificateService = app()->make(CertificateService::class);
}
public function getAll($view)
{
$view->with('composedCertificates', $this->certificateService->getAllCertificates());
}
}