Saturday, May 5, 2018

Laravel url validate without get params - development

Laravel url validate without get params

How I can validate site link?
Example: user write url: http://example.com/get?d=323&d=323

I need get only `http://example.com/

How I can validate?

$this->validate($request->all(), ['url' => 'required|url']

this not work. This validate url with get params..

Or how not validate this, and get in variable only http://example.com/ ?



from Laravel Questions and Answers https://laravelquestions.com/php/laravel-url-validate-without-get-params/
via Lzo Media

No comments:

Post a Comment