How do I add setting definitions to a model?

Setting definitions allow you to define settings via the admin UI.

To add a setting definition for a model, you must add the model type, you can do this using the model class or relation key.

For example:

// By class
\Aero\Common\Models\SettingDefinition::addModelType(Acme::class, 'Acme');

// By relation key
\Aero\Common\Models\SettingDefinition::addModelType(Acme::RELATION_KEY, 'Acme');

The model you're adding must support model settings for setting definitions to work.


Revision #1
Created 2026-09-18 09:54:43 UTC by Ethan Payne
Updated 2026-09-18 09:56:25 UTC by Ethan Payne