When I use laravel url validation rules like:-
array(
'name' => 'required|min:3',
'url' => 'required|url'
)
It rejects any url that does not have http:// or https://. However I would like to make it optional.
You can just ignore the url rule. Or you need to prefix your input.
Another way is to set an custom rule.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With