for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lyal\Checkr\Laravel;
use Illuminate\Support\Facades\App;
use Illuminate\Support\ServiceProvider;
use Lyal\Checkr\Client;
use Lyal\Checkr\Laravel\Http\Middleware\Webhook;
class CheckrServiceProvider extends ServiceProvider
{
public function boot()
$this->loadRoutesFrom(__DIR__.'/Routes/api.php');
$this->publishes([
__DIR__.'/Config/checkr.php' => config_path('checkr.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
__DIR__.'/Config/checkr.php' => /** @scrutinizer ignore-call */ config_path('checkr.php'),
]);
}
public function register()
$this->app['router']->aliasMiddleware('checkr_webhook', Webhook::class);
$this->app->bind('lyal.checkr', function () {
$key = App::environment('production') ? config('checkr.production_key') : config('checkr.testing_key');
config
$key = App::environment('production') ? /** @scrutinizer ignore-call */ config('checkr.production_key') : config('checkr.testing_key');
return new Client($key, config('checkr.options', []));
});
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
return [Client::class];