*@return\Illuminate\Validation\Validator */protectedfunctionvalidateAbilities($validator){ $abilities = implode(',', array_keys(Spark::tokensCan())); $validator->sometimes('abilities','required|array|in:'. $abilities,function(){returncount(Spark::tokensCan()) >0; });return$validator; } 开发...
are you maybe failing your validation in the first error? are you running in a server 500 error instead? Level 1 georgecoffeyOP Posted 10 months ago @krisi_gjikaMy validation only has one rule now for testing, so it's failing on that one rule. Not getting any server errors. ...
Laravel 2 195 Level 4 Subscriber musciplayOP Posted 3 months ago Google Recaptcha validation occasionally will throw SSL connection timeout The Timeout happens on this validation request. It only happens once every couple of days. publicfunctionvalidate(string$attribute,mixed$value,Closure$fail):void...