for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JumpGate\Menu;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
/**
* Class ServiceProvider
*
* @package JumpGate\Menu
*/
class MenuServiceProvider extends LaravelServiceProvider
{
* Indicates if loading of the provider is deferred.
* @var bool
protected $defer = false;
* Register the service provider.
* @return void
public function register()
$this->shareWithApp();
$this->registerAliases();
}
* Share the package with application
protected function shareWithApp()
$this->app->singleton('menu', function () {
return new Container();
});
* Register aliases
protected function registerAliases()
$loader = AliasLoader::getInstance();
$loader->alias('Menu', 'JumpGate\Menu\MenuFacade');
* Get the services provided by the provider.
* @return string[]
public function provides()
return ['menu'];