Domain Name Rule
Validate Domain Names
176k Downloads / Month
Open Source MIT License
176k Downloads / Month
Open Source MIT License
Validate domain names in Laravel with Intervention Validation. DNS and domain format checks.
public Intervention\Validation\Rules\Domainname::__construct()
The field under validation must be a well-formed domain name.
none
use Illuminate\Support\Facades\Validator; use Intervention\Validation\Rules\Domainname; $validator = Validator::make($request->all(), [ 'attribute-key' => new Domainname(), ]);