* @throws \Illuminate\Validation\ValidationException If the data is invalid. */ public static function validateData($data, bool $required); }