for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Alish\LaravelOtp;
use Illuminate\Support\ServiceProvider;
class OtpServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
$this->publishes([
__DIR__.'/../migrations/' => database_path('migrations')
], 'migrations');
if ($this->app->runningInConsole()) {
__DIR__.'/../config/config.php' => config_path('otp.php'),
], 'config');
// Registering package commands.
// $this->commands([]);
}
* Register the application services.
public function register()
// Automatically apply the package configuration
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'otp');
// Register the main class to use with the facade
$this->app->singleton('otp', function ($app) {
return new OtpManager($app);
});