<?php namespace App\Testimonials;
class TestimonialComposer
{
/** @var TestimonialService $testimonialService */
private $testimonialService;
public function __construct()
{
$this->testimonialService = app()->make(TestimonialService::class);
}
public function getAll($view)
{
$view->with('composedTestimonials', $this->testimonialService->getAllTestimonials());
}
}