@@ -44,9 +44,9 @@ public static function validatorForStoring(RestifyRequest $request, array $plain
4444 $ on ->getStoringRules ($ request ),
4545 $ messages
4646 )->after (function ($ validator ) use ($ request ) {
47- static ::afterValidation ($ request , $ validator );
48- static ::afterStoringValidation ($ request , $ validator );
49- });
47+ static ::afterValidation ($ request , $ validator );
48+ static ::afterStoringValidation ($ request , $ validator );
49+ });
5050 }
5151
5252 public static function validatorForStoringBulk (RestifyRequest $ request , array $ plainPayload = null )
@@ -67,9 +67,9 @@ public static function validatorForStoringBulk(RestifyRequest $request, array $p
6767 $ on ->getStoringBulkRules ($ request ),
6868 $ messages
6969 )->after (function ($ validator ) use ($ request ) {
70- static ::afterValidation ($ request , $ validator );
71- static ::afterStoringBulkValidation ($ request , $ validator );
72- });
70+ static ::afterValidation ($ request , $ validator );
71+ static ::afterStoringBulkValidation ($ request , $ validator );
72+ });
7373 }
7474
7575 /**
@@ -101,9 +101,9 @@ public static function validatorForUpdate(RestifyRequest $request, $resource = n
101101 $ on ->getUpdatingRules ($ request ),
102102 $ messages
103103 )->after (function ($ validator ) use ($ request ) {
104- static ::afterValidation ($ request , $ validator );
105- static ::afterUpdatingValidation ($ request , $ validator );
106- });
104+ static ::afterValidation ($ request , $ validator );
105+ static ::afterUpdatingValidation ($ request , $ validator );
106+ });
107107 }
108108
109109 public static function validatorForPatch (RestifyRequest $ request , $ resource = null , array $ plainPayload = null )
@@ -127,9 +127,9 @@ public static function validatorForPatch(RestifyRequest $request, $resource = nu
127127 collect ($ on ->getUpdatingRules ($ request ))->intersectByKeys ($ request ->json ())->all (),
128128 $ messages
129129 )->after (function ($ validator ) use ($ request ) {
130- static ::afterValidation ($ request , $ validator );
131- static ::afterUpdatingValidation ($ request , $ validator );
132- });
130+ static ::afterValidation ($ request , $ validator );
131+ static ::afterUpdatingValidation ($ request , $ validator );
132+ });
133133 }
134134
135135 public static function validatorForAttach (RestifyRequest $ request , $ resource = null , array $ plainPayload = null )
@@ -179,9 +179,9 @@ public static function validatorForUpdateBulk(RestifyRequest $request, $resource
179179 $ on ->getUpdatingBulkRules ($ request ),
180180 $ messages
181181 )->after (function ($ validator ) use ($ request ) {
182- static ::afterValidation ($ request , $ validator );
183- static ::afterUpdatingBulkValidation ($ request , $ validator );
184- });
182+ static ::afterValidation ($ request , $ validator );
183+ static ::afterUpdatingBulkValidation ($ request , $ validator );
184+ });
185185 }
186186
187187 /**
0 commit comments