Semantic Versioning Rule
Validate Semantic Version Numbers
134k Downloads / Month
Open Source MIT License
134k Downloads / Month
Open Source MIT License
public Intervention\Validation\Rules\SemVer::__construct()
The field under validation must be a valid version numbers using Semantic Versioning.
none
use Intervention\Validation\Rules\SemVer; $validator = Validator::make($request->all(), [ 'attribute-key' => new SemVer(), ]);