laravel-model-settings
laravel-model-settings copied to clipboard
No support to custom validation rules
Describe the bug There is no support to add custom validation rules Reference: https://github.com/glorand/laravel-model-settings/issues/87#issuecomment-964529183
To Reproduce Add a custom validation rule. You'll get "expression is not allowed as field default value".
Expected behavior Convert the "settingsRules" property to a method like the "rules" method in Laravel FormRequest
Screenshots

😥
The project seems to be abandoned. I am closing the issue because I have forked this project, fixed this issue, and also added other features.
@Lukasss93 sorry for late answer. Can you make a pull request for this feature. Thanks in advance!