You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validates whether the input is a public domain suffix from the Public Suffix List, including wildcard, exception, ICANN and private section rules.
v::publicDomainSuffix()->assert('co.uk');
// Validation passes successfully
v::publicDomainSuffix()->assert('co.ck');
// Validation passes successfully
v::publicDomainSuffix()->assert('www.ck');
// → "www.ck" must be a public domain suffix
v::publicDomainSuffix()->assert('myname.nom.br');
// Validation passes successfully
v::publicDomainSuffix()->assert('invalid.com');
// → "invalid.com" must be a public domain suffix
v::publicDomainSuffix()->assert('blogspot.com');
// Validation passes successfully
This validator will not match top level domains such as tk.
If you want to match either, use a combination with Tld: