I need validate url. I need allow only main url sites, example:
http://example.com
https://example.com
I need prevent this urls:
http://example.com/page/blahblahblah
https://example.com/other/bloa
How I can validate only host of url and protocol?
Now I use this:
'url' => 'required|url',
'url' => 'required|regex:...', but I'm not a regex expert, so I'm not sure what the pattern would look like.in:url1,url2.