webpatser/laravel-uuid

Lumen 6.3.2 - did not autodiscover - Class 'Uuid' not found

dodancs opened this issue · 3 comments

Hey, I wanted to use this for my API, and after running composer require, I tried to use the library in my code, but was unsuccessfull.

It seems like Lumen does not know anything about it.

Help please?

Hey, I wanted to use this for my API, and after running composer require, I tried to use the library in my code, but was unsuccessfull.

It seems like Lumen does not know anything about it.

Help please?

hi

You can use the webpaster uuid class

use Webpatser\Uuid\Uuid;

  • Lumen doesn't support auto-discovery.
  • You'll only need the service provider if you want to validate your request. Otherwise, the service provider isn't mandatory.

This should be in the README file.

use Webpatser\Uuid\Uuid;