laravel-model-settings icon indicating copy to clipboard operation
laravel-model-settings copied to clipboard

No support to custom validation rules

Open Lukasss93 opened this issue 3 years ago • 1 comments

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 141001871-95d6659e-2495-4532-b6e3-34239146c17a

Lukasss93 avatar Dec 12 '21 19:12 Lukasss93

😥

Lukasss93 avatar Feb 14 '22 20:02 Lukasss93

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 avatar Nov 25 '22 21:11 Lukasss93

@Lukasss93 sorry for late answer. Can you make a pull request for this feature. Thanks in advance!

glorand avatar Jan 21 '23 12:01 glorand