Welcome Guest, Not a member yet? Register   Sign In
Append all SELECT queries with an extra WHERE in model
#5

(This post was last modified: 09-11-2023, 08:23 AM by sjender.)

Yes, got it...

What is, in your opinion,  the best way to get the USER_ID into this method...


PHP Code:
    protected $beforeFind = ['userSpecific'];

    
    
protected function userSpecific()
    {
        $this->builder()->where('user_id'$userId);
    
Reply


Messages In This Thread
RE: Append all SELECT queries with an extra WHERE in model - by sjender - 09-11-2023, 08:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB