Where exactly "register models with prefixed ids" by putting "Spatie\PrefixedIds\PrefixedIds::registerModels([ ... ])" code ??? #17
Unanswered
chegmarco1989
asked this question in
Q&A
Replies: 1 comment
-
You're missing the Add this in: use Spatie\PrefixedIds\PrefixedIds; and replace the usage with or you could just stick a \Spatie\PrefixedIds\PrefixedIds::registerModels([ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
After put this:
Into:
App\Providers\AppServiceProvider.php
exactly like this:We got this error:
So, how to fix this error or Where exactly register models with prefixed ids by putting
Spatie\PrefixedIds\PrefixedIds::registerModels([ ... ])
code ???Please Help.
Beta Was this translation helpful? Give feedback.
All reactions