laravel-url-shortener icon indicating copy to clipboard operation
laravel-url-shortener copied to clipboard

Error in UrlShortenerManager::resolve()

Open eric-mendoza opened this issue 5 years ago • 0 comments

Hello,

Trying to use it in laravel 7.16.1. Installed with: composer require laracrafts/laravel-url-shortener

Using this simple code:

$shortener = url()->shortener()->driver();
$shortener->shorten('www.google.com');

Throws me the following error:

> Argument 1 passed to LaraCrafts\UrlShortener\UrlShortenerManager::resolve() must be of the type string, null given, called in C:\...\vendor\laracrafts\laravel-url-shortener\src\UrlShortenerManager.php on line 267

eric-mendoza avatar Jun 23 '20 18:06 eric-mendoza