using spatie activity log in api code example Example: activity log spatie activity()->log('Look mum, I logged something');