File: D:/HostingSpaces/SBogers10/beat-the-barn.komma.nl/app/Testimonials/TestimonialComposer.php
<?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('testimonials', $this->testimonialService->getAll());
}
public function getForHome($view)
{
$view->with('testimonialsForHome', $this->testimonialService->getForHome());
}
public function getForEducation($view)
{
$view->with('testimonialsForEducation', $this->testimonialService->getForEducation());
}
public function getForCoaching($view)
{
$view->with('testimonialsForCoaching', $this->testimonialService->getForCoaching());
}
}