URL Validation in Laravel with isUrl Method
Need to validate URLs in your Laravel application? The Str::isUrl method provides a simple and flexible way to check if strings are valid URLs.
Basic Usage
Validate URLs with or without protocol restrictions:
use Illuminate\Support\Str;
// Basic URL validation
$isUrl = Str::isUrl('http://example.com'); // true