for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Padosoft\Laravel\Notification\Notifier;
use Illuminate\Support\ServiceProvider;
class NotifierServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
* Bootstrap the application events.
* @return void
public function boot()
{
}
* Register the service provider.
public function register()
$this->app->singleton('notifier', 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 Notifier(session());
});
* Get the services provided by the provider.
* @return array
public function provides()
return ['notifier'];
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.