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

[5.1] Use table name as default for morph map #10147

Merged
merged 4 commits into from
Sep 8, 2015

Conversation

JosephSilber
Copy link
Member

So that you can set the morph map by simply passing in the model class names:

Relation::morphMap([
    App\User::class,
    App\Post::class,
    App\Comment::class,
]);

@JosephSilber JosephSilber force-pushed the simple-morph-map branch 2 times, most recently from eb1374e to e00910b Compare September 3, 2015 19:18
@JosephSilber JosephSilber changed the title Use table name as default for morph map [5.1] Use table name as default for morph map Sep 3, 2015
@jesseleite
Copy link

<3

@JosephSilber JosephSilber force-pushed the simple-morph-map branch 3 times, most recently from 218df43 to c5f219f Compare September 7, 2015 19:04
taylorotwell added a commit that referenced this pull request Sep 8, 2015
[5.1] Use table name as default for morph map
@taylorotwell taylorotwell merged commit 3f496bf into laravel:5.1 Sep 8, 2015
@JosephSilber JosephSilber deleted the simple-morph-map branch September 25, 2015 16:23
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

Successfully merging this pull request may close these issues.

None yet

4 participants