pollora/option
A Laravel-friendly wrapper for WordPress options that gives you a clean Option facade to get, set, update, and delete site options without raw WordPress calls. Built for the Pollora ecosystem, it adds sensible defaults and fluent, typed access for WordPress-backed Laravel apps.
OptionValidationService uses typed class constants, which are a parse error on 8.2 ("Cannot parse"). Check php -v locally and in CI before running composer require; on 8.2 the failure surfaces at autoload time, not at install time, so it looks like a broken package rather than a version mismatch.composer require <vendor>/<package>:^1.1
php artisan vendor:publish --tag=<package>-config
OptionValidationService. It is the entry point that carries the validation logic and is the file referenced by the release notes, so it is the best map of what the package actually does: which option keys it knows about, which rules it applies, and how it reports errors.rules() array in a FormRequest. Resolve the service and pass the payload through it, then assert $service->passes() / read $service->errors().OptionValidationService from the container in rules() or prepareForValidation(), and let Laravel's validation pipeline own the response shape. This keeps your controllers thin and makes the errors consistent with the rest of the app.php artisan config:cache in your deploy script.^1.1 (not *) in composer.json; the 8.3 floor was a hard cutover, and a loose constraint plus an older runner image is how a green build turns red on a Friday.composer.json require.php, CI matrix, Docker base image, and local Herd/Valet in one change.options.color, options.sizes.0), not flat names — read $validator->errors()->toArray() during debugging before wiring messages to a UI.php artisan config:clear before hunting in the service.OptionValidationService — subclassing is what will hurt when the internal rule list changes in a minor release.How can I help you explore Laravel packages today?