for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yajra\Disqus;
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Support\ServiceProvider;
class DisqusServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
$this->publishConfig();
$this->registerMiddleware();
}
* Register and publish the config.
protected function publishConfig()
$path = __DIR__.'/../config/disqus.php';
$this->mergeConfigFrom($path, 'disqus');
$this->publishes([
$path => config_path('disqus.php'),
config_path
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$path => /** @scrutinizer ignore-call */ config_path('disqus.php'),
], 'disqus');
* Register disqus middleware.
protected function registerMiddleware()
$this->app[Kernel::class]->pushMiddleware(
DisqusMiddleware::class
);
* Register any application services.
public function register()
//