Skip to content
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

I want to use morph map alias, how to do that? #25

Open
lzt7 opened this issue Sep 23, 2016 · 1 comment
Open

I want to use morph map alias, how to do that? #25

lzt7 opened this issue Sep 23, 2016 · 1 comment

Comments

@lzt7
Copy link

lzt7 commented Sep 23, 2016

I am using morph map alias, but not working,

public function boot()
    {
        Relation::morphMap([
            //'blog' => \App\Models\Blog::class,
            'user' => \App\Models\User::class,
            'activity' => \App\Models\Activity::class,
            'photo' => \App\Models\Photo::class,
            'photoAlbum' => \App\Models\PhotoAlbum::class,
        ]);
    }

I want to use morph map alias, how to do that?

@khanhvu14
Copy link

Same question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants