Some checks failed
Tests / PHP 8.1 (push) Has been cancelled
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
26 lines
601 B
PHP
26 lines
601 B
PHP
<?php
|
|
|
|
namespace Modules\EcommerceFinance\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider as Provider;
|
|
|
|
class Main extends Provider
|
|
{
|
|
public function boot(): void
|
|
{
|
|
$this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'ecommerce-finance');
|
|
$this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');
|
|
}
|
|
|
|
public function register(): void
|
|
{
|
|
if (app()->routesAreCached()) {
|
|
return;
|
|
}
|
|
|
|
foreach (['admin.php', 'api.php'] as $route) {
|
|
$this->loadRoutesFrom(__DIR__ . '/../Routes/' . $route);
|
|
}
|
|
}
|
|
}
|