-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Str::ulid() not working #44167
Comments
composer r symfony/uid |
@huangdijia Sorry, I don't understand your comment? I did manually install the dependency with composer require, but what I want to say is that it should be required by Laravel Framework in order for the Str::ulid() to work properly. Or, do I misunderstand you? Also see where I commented in the pr. |
So to use its functionality you should manually install this dependency. |
@rodrigopedra |
No, I actually just saw they have released it after I sent my first answer (now deleted) about the release date. I didn't think they would have introduced a new public method on a patch release. As I had the same method macro'ed I was keeping an eye on the next minor release to test it out before updating. The But as some other optional features in the framework, you must install the suggested dependency manually if you plan on using this method. It is an opt-in feature. This is similar on using S3 storage. All code is available in the framework, but you need to manually install So, to summarize:
Hope it is clearer now. Sorry for the confusion. |
Thank you @rodrigopedra Anyway, it was easy to figure out, and I guess it will be added to the docs that it requires manual installation |
Added method to documentation, along with a not to require |
I sent in a PR to require the package instead to make it easier: #44202 |
There is something wrong with the Illuminate Support
symfony/uid
requirement.I had to manually
composer require symfony/uid
to getStr::ulid()
to work.Originally posted by @tanthammar in #44074 (comment)
Laravel v 9.30.1
The text was updated successfully, but these errors were encountered: