artdarek / pusherer

Pusher Service Provider for Laravel 4.
48 stars 13 forks source link

How to trigger update #3

Open breet opened 10 years ago

breet commented 10 years ago

Hi,

for store Pusherer::trigger('channel', 'created' , $tabc->toArray() ); for destroy: Pusherer::trigger('channel', 'destroyed' , $tabc->id );

works fine but for update should I pass id or all attributes like store. I have tried Pusherer::trigger('channel', 'updated' , $tabc->toArray() ); but it behaves like new addition instead of update. How should i trigger update??