This tables are just for example.
Let's say we have two tables: order_items(id int, name string, printed int ) - output(id int, order_item_id, quantity int)
So when printed is changed from 0 to 1, we add a record to output with that order_item. But when we update printed to 0, we delete that record to previous state. I'm trying to make simple event listener or something on specific attribute, can it be done?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community