for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Humweb\Breadcrumbs;
use Illuminate\Support\ServiceProvider;
class BreadcrumbsServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
* Register the service provider.
* @return void
public function register()
{
$this->app->singleton('breadcrumbs', function($app)
$app
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new Breadcrumbs();
});
}
* Get the services provided by the provider.
* @return array
public function provides()
return array('breadcrumbs', 'navigation');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.