Using class methods validation config |
Hi,
i set my rules in Config/Validation.php. Is it possible to use a method in this class and use this method (to access other class variables) as a rule group? PHP Code: class Validation extends BaseConfig {
(09-21-2022, 03:00 AM)kenjis Wrote:(09-19-2022, 10:11 AM)groovebird Wrote: Is it possible to use a method in this class and use this method (to access other class variables) as a rule group? @kenjis i would use a configuration variable within the error message but in a property i have no access to the configuration. Is there a way to do that? PHP Code: $config = config('Validation');
|
Welcome Guest, Not a member yet? Register Sign In |