WuYongJie 2b6c4030e5
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
chore: 补充财务与支付模块源码
2026-07-20 18:40:05 +08:00

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);
}
}
}