update v 1.0.7.5

This commit is contained in:
Sujit Prasad
2016-06-13 20:41:55 +05:30
parent aa9786d829
commit 283d97e3ea
5078 changed files with 339851 additions and 175995 deletions

View File

@@ -0,0 +1,22 @@
<?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();
}
}