update v 1.0.7.5
This commit is contained in:
22
vendor/davejamesmiller/laravel-breadcrumbs/src/View.php
vendored
Normal file
22
vendor/davejamesmiller/laravel-breadcrumbs/src/View.php
vendored
Normal 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();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user