Replies: 1 comment
-
The In any case, I have this in the boot method of my AppServiceProvider:
And then |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background
Some times, we need to find the morphed alias by model class.
hope to use
Relation::getMorphAlias(\App\Models\Xxx::class)
get it.code
Example
AppServiceProvider.php
Beta Was this translation helpful? Give feedback.
All reactions