update 1.0.8.0
Commits for version update
This commit is contained in:
@@ -19,6 +19,8 @@ class Manager {
|
||||
|
||||
public function register($name, $callback)
|
||||
{
|
||||
if (isset($this->callbacks[$name]))
|
||||
throw new Exception("Breadcrumb name \"{$name}\" has already been registered");
|
||||
$this->callbacks[$name] = $callback;
|
||||
}
|
||||
|
||||
|
@@ -67,8 +67,14 @@ class ServiceProvider extends BaseServiceProvider {
|
||||
// This method can be overridden in a child class
|
||||
public function registerBreadcrumbs()
|
||||
{
|
||||
// Load the app breadcrumbs if they're in app/Http/breadcrumbs.php
|
||||
if (file_exists($file = $this->app['path'].'/Http/breadcrumbs.php'))
|
||||
// Load the app breadcrumbs if they're in routes/breadcrumbs.php (Laravel 5.3)
|
||||
if (file_exists($file = $this->app['path.base'].'/routes/breadcrumbs.php'))
|
||||
{
|
||||
require $file;
|
||||
}
|
||||
|
||||
// Load the app breadcrumbs if they're in app/Http/breadcrumbs.php (Laravel 5.0-5.2)
|
||||
elseif (file_exists($file = $this->app['path'].'/Http/breadcrumbs.php'))
|
||||
{
|
||||
require $file;
|
||||
}
|
||||
|
Reference in New Issue
Block a user