File: D:/HostingSpaces/SBogers10/zuiderbos.komma.pro/Komma/Blocks/BlockComposer.php
<?php
namespace Komma\Blocks;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Config;
class BlockComposer {
private $blockService;
/**
* @return mixed
*/
public function __construct(BlockService $blockService)
{
$this->blockService = $blockService;
}
/**
* Making the breadcrumb by getting the url segments
*
* @param $view
*/
public function compose($view){
$block = $this->blockService->getBlocksByCodeName('pricing_pay_off')->first();
$view->with('defaultContent', $block);
}
}