When using the activity logger on my 'Article' model I get the table name as subject instead of the Model. I tried changing the name of the model and this worked. Also changing the namespace of the model worked for me.
How come it doesn't work when the namespace is App\Article ?
Could you give us some code that is failing for you?
@freekmurze I'm using the trait on my model, just as I use it on all my other models. So I can't really provide code.
Can you PR a failing test?
@sander-tjuna Have you made your own morphMap for that Article model maybe?
@bbashy thanks! this was the culprit other developer had left this behind in the appserviceprovider (the morphmap). It was doing nothing. Thanks for pointing me (us @sander-tjuna) there!
@GioChocolateBro Good to hear. It did sound like that was the problem :)
馃憤
Most helpful comment
@sander-tjuna Have you made your own morphMap for that Article model maybe?