File: D:/HostingSpaces/SBogers10/honger.komma.pro/vendor/davejamesmiller/laravel-breadcrumbs/src/View.php
<?php namespace DaveJamesMiller\Breadcrumbs;
use Illuminate\Contracts\View\Factory as ViewFactory;
class View {
protected $factory;
public function __construct(ViewFactory $factory)
{
$this->factory = $factory;
}
public function render($view, $breadcrumbs)
{
if (!$view)
throw new Exception('Breadcrumbs view not specified (check the view in config/breadcrumbs.php, and ensure DaveJamesMiller\Breadcrumbs\ServiceProvider is loaded before any dependants in config/app.php)');
return $this->factory->make($view, compact('breadcrumbs'))->render();
}
}