Laravel AT Protocol Client (alpha & unstable)
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix schema validation to use validateWithErrors method

+3 -2
+3 -2
src/Http/HasHttp.php
··· 87 87 88 88 $data = $response->json(); 89 89 90 - if (! Schema::validate($endpoint, $data)) { 91 - $errors = Schema::getErrors($endpoint, $data); 90 + $errors = Schema::validateWithErrors($endpoint, $data); 91 + 92 + if (! empty($errors)) { 92 93 throw new ValidationException($errors); 93 94 } 94 95 }