Welcome Guest, Not a member yet? Register   Sign In
logging db actions via model events and id problem
#4

First you need to extend the Model or use a trait by implementing the where() method.
1. The method must save all conditions.
2. The method will have to call the parent __call method in order for it to call the builder.

In the desired model event, you get the previously saved conditions and make a selection from the database with an id.

Perhaps another way will work for you. These are the triggers of the DBMS you are using.
Reply


Messages In This Thread
RE: logging db actions via model events and id problem - by iRedds - 01-13-2022, 11:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB