How do I register custom settings?

To register settings you need to use the Aero\Common\Facades\Settings facade from the setup method of your modules service provider. You should call the group method on the facade and pass in a unique name for your settings group and a closure that defines your settings group.


namespace Acme\MyModule;

use Aero\Common\Facades\Settings;
use Aero\Common\Providers\ModuleServiceProvider;
use Aero\Common\Settings\SettingGroup;

class ServiceProvider extends ModuleServiceProvider
   public function setup()
       Settings::group('acme-my-module', function (SettingGroup $group) {

Articles in this section

Was this article helpful?
0 out of 0 found this helpful