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

Commit 2ed434c

Browse files
Upgraded to the latest version of laravel 5
1 parent 060048b commit 2ed434c

3 files changed

Lines changed: 6 additions & 25 deletions

File tree

composer.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,13 @@
99
"email": "graham@mineuk.com"
1010
}
1111
],
12-
"repositories": [
13-
{
14-
"type": "vcs",
15-
"url": "https://github.com/GrahamCampbell/framework"
16-
},
17-
{
18-
"type": "vcs",
19-
"url": "https://github.com/GrahamCampbell/html"
20-
},
21-
{
22-
"type": "vcs",
23-
"url": "https://github.com/GrahamCampbell/testbench"
24-
}
25-
],
2612
"require": {
2713
"php": ">=5.4.7",
2814
"illuminate/contracts": "~5.0",
2915
"illuminate/http": "~5.0",
30-
"illuminate/support": "~5.0"
16+
"illuminate/support": "~5.0",
17+
"orchestra/config": "~3.0",
18+
"orchestra/support-providers": "~3.0"
3119
},
3220
"require-dev": {
3321
"graham-campbell/testbench": "~2.0"

src/NavigationServiceProvider.php

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

1212
namespace GrahamCampbell\Navigation;
1313

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

1616
/**
1717
* This is the navigation service provider class.
@@ -21,20 +21,13 @@
2121
class NavigationServiceProvider extends ServiceProvider
2222
{
2323
/**
24-
* Indicates if loading of the provider is deferred.
25-
*
26-
* @var bool
27-
*/
28-
protected $defer = false;
29-
30-
/**
31-
* Bootstrap the application events.
24+
* Boot the service provider.
3225
*
3326
* @return void
3427
*/
3528
public function boot()
3629
{
37-
$this->package('graham-campbell/navigation', 'graham-campbell/navigation', __DIR__);
30+
$this->addViewComponent('graham-campbell/navigation', 'graham-campbell/navigation', realpath(__DIR__.'/../views'));
3831
}
3932

4033
/**

0 commit comments

Comments
 (0)