E
E
Elsa122018-07-25 15:38:33
Laravel
Elsa12, 2018-07-25 15:38:33

How to validate page link in linkedIn using laravel validate?

In order to check that this is just a link, I use 'link' => 'active_url', but the question is, how to check that this is a link to an account in linkedIn?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2018-07-25
@Elsa12

if my memory serves me in linkedin, the address to the user's page is formed according to the pattern https://www.linkedin.com/in/{username} , respectively, you can use the regex validator to check the link according to this pattern

Y
Yan-s, 2018-07-25
@Yan-s

Write your own validation rule https://laravel.com/docs/validation#custom-validat... or regular check https://laravel.com/docs/validation#rule-regex

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question