You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So new to laravel here, im implementing the activity log for my project and everything's going well but im just not able to grasp how i should be implementing the
activity()
->causedBy($userModel)
->performedOn($someContentModel)
->log('edited');
I want to get the causer name (ie username) on a table but i have no idea how, where should i put this code? Any advice would be nice thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So new to laravel here, im implementing the activity log for my project and everything's going well but im just not able to grasp how i should be implementing the
activity()
->causedBy($userModel)
->performedOn($someContentModel)
->log('edited');
I want to get the causer name (ie username) on a table but i have no idea how, where should i put this code? Any advice would be nice thanks!
Beta Was this translation helpful? Give feedback.
All reactions