src/Providers/SettingsServiceProvider.php
<?php
namespace EscolaLms\Cart\Providers;
use EscolaLms\Settings\EscolaLmsSettingsServiceProvider;
use EscolaLms\Settings\Facades\AdministrableConfig;
use Illuminate\Support\ServiceProvider;
class SettingsServiceProvider extends ServiceProvider
{
public function register()
{
if (class_exists(\EscolaLms\Settings\EscolaLmsSettingsServiceProvider::class)) {
if (!$this->app->getProviders(EscolaLmsSettingsServiceProvider::class)) {
$this->app->register(EscolaLmsSettingsServiceProvider::class);
}
AdministrableConfig::registerConfig('escolalms_cart.min_product_price', ['required', 'numeric', 'min:0']);
}
}
}