laravel-likeable
laravel-likeable copied to clipboard
I want to use morph map alias, how to do that?
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?
Same question?