Skip to content

Error in UrlShortenerManager::resolve()  #44

@eric-mendoza

Description

@eric-mendoza

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions