https://twill.io logo
Enabling activity log in dashboard
# ❓questions
j
If i add 'activity' => true, like illustrated here: https://github.com/area17/twill/blob/3.x/docs/content/1_documentation/8_dashboard/index.md i get the class not found for that module. When i remove 'activity' => true, it works fine but activity is always empty
i
hi @jefsev you need a morphmap defined for this to work
j
You mean adding the following to the model? for activity to work or do i need to do more? Relation::enforceMorphMap([ 'post' => 'App\Models\Blogs', ]);
'blogs' => 'App\Models\Blogs', i mean
i
yes that's it. enforceMorphMap will force you to add one for all models, but yes
j
Ah so if i only want blogs i better use morphMap instead i don't need all my models in the dashboard
got 🙂
it
thx!
3 Views