cesargb / laravel-magiclink

Create link for authenticate in Laravel without password or get private content
MIT License
367 stars 43 forks source link

setMagiclinkId(): Argument #1 ($magiclinkId) must be of type string, LazyUuidFromString given #112

Closed rossbearman closed 5 months ago

rossbearman commented 5 months ago

setMagiclinkId() on ActionAbstract requires a string, but Str::uuid() in Laravel 9+ will return a LazyUuidFromString, which isn't being cast.

Casting it to a string in the creating() observe resolves this issue.