for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PrasanthJ\Otpify;
use Illuminate\Support\ServiceProvider;
use PrasanthJ\Otpify\Commands\CleanOtps;
use PrasanthJ\Otpify\Otpify;
class OtpifyServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
$this->app->bind('Otpify', Otpify::class);
}
* Bootstrap services.
public function boot()
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
if ($this->app->runningInConsole()) {
$this->commands([
CleanOtps::class,
]);
$this->publishes([
__DIR__ . '/../config/otpify.php' => config_path('otpify.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/otpify.php' => /** @scrutinizer ignore-call */ config_path('otpify.php')
], 'otpify-config');
__DIR__ . '/../database/migrations/' => database_path('migrations')
database_path
__DIR__ . '/../database/migrations/' => /** @scrutinizer ignore-call */ database_path('migrations')
], 'otpify-migrations');