Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.

Commit 7a10342

Browse files
Updated for the latest L5 changes
1 parent 801f235 commit 7a10342

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"php": ">=5.4.7",
1414
"illuminate/contracts": "5.0.*",
1515
"illuminate/http": "5.0.*",
16-
"illuminate/support": "5.0.*",
17-
"orchestra/config": "3.0.*",
18-
"orchestra/support-providers": "3.0.*"
16+
"illuminate/support": "5.0.*"
1917
},
2018
"require-dev": {
2119
"graham-campbell/testbench": "dev-master"

src/NavigationServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace GrahamCampbell\Navigation;
1313

14-
use Orchestra\Support\Providers\ServiceProvider;
14+
use Illuminate\Support\ServiceProvider;
1515

1616
/**
1717
* This is the navigation service provider class.
@@ -27,7 +27,7 @@ class NavigationServiceProvider extends ServiceProvider
2727
*/
2828
public function boot()
2929
{
30-
$this->addViewComponent('graham-campbell/navigation', 'graham-campbell/navigation', realpath(__DIR__.'/../views'));
30+
$this->loadViewsFrom(realpath(__DIR__.'/../views'), 'navigation');
3131
}
3232

3333
/**
@@ -52,7 +52,7 @@ protected function registerNavigation()
5252
$events = $app['events'];
5353
$url = $app['url'];
5454
$view = $app['view'];
55-
$name = 'graham-campbell/navigation::bootstrap';
55+
$name = 'navigation::bootstrap';
5656

5757
$navigation = new Navigation($request, $events, $url, $view, $name);
5858
$app->refresh('request', $navigation, 'setRequest');

0 commit comments

Comments
 (0)