File: D:/HostingSpaces/PDeckers/opelkapitan.nl/app/Komma/Blocks/composers/ContactComposer.php
<?php
/**
* Short description for the file.
*
* @author Komma <support@komma.pro>
* @copyright (c) 2012-2015, Komma Mediadesign
*/
namespace Komma\Blocks\Composers;
use Illuminate\Foundation\Composer;
use Komma\Blocks\BlockService;
class ContactComposer
{
private $blockService;
public function __construct(BlockService $blockService)
{
$this->blockService = $blockService;
}
public function compose($view)
{
$contactBlock = $this->blockService->getBlocksWhere('code_name', 'contact_footer');
$view->with(['footerContact'=> $contactBlock->first()]);
}
}