for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Squareetlabs\AuthorizeNet\Providers;
use Illuminate\Support\ServiceProvider;
class AuthorizeNetServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register(): void
$configPath = __DIR__.'/../../config/authorizenet.php';
if (file_exists($configPath)) {
$this->mergeConfigFrom($configPath, 'authorizenet');
}
* Bootstrap any application services.
public function boot(): void
$this->loadMigrations();
$this->publishConfig();
* Load package migrations.
protected function loadMigrations(): void
if ($this->app->runningInConsole()) {
$migrationsPath = __DIR__.'/../../database/migrations';
if (is_dir($migrationsPath)) {
$this->loadMigrationsFrom($migrationsPath);
* Publish the configuration file.
protected function publishConfig(): void
$this->publishes([
$configPath => config_path('authorizenet.php'),
], 'authorizenet-config');