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