I have a table structure like this :
subscribers with attributes: id, status
I want to have a way to check for the column status : If the status change to 'unsubscribed' then i want to auto detect thats change and apply do something with that.
The workflow is like this :
Anywhere in the code call $subscriber->status = 'unsubscribed'; I want to detect that and do something with that.
Thanks for reading.
I had use isDirty of laravel but that had to write after every $subscriber->status = 'unsubscribed'; so its did not do the work.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)