Check if in input not url address Laravel
I have 2 inputs with social accounts, I need get login this social accounts. I need deny write links in this inputs. How I can do it?
$this->validate($request, [
'google_plus' => 'required|not:url',
'twitter' => 'required|not:url',
]);
not:url
not working..
Example: I need deny link: https://twitter.com/loginUser And allow only: loginUser
from Laravel Questions and Answers https://laravelquestions.com/php/check-if-in-input-not-url-address-laravel/
via Lzo Media
No comments:
Post a Comment