Randy_Johnson
1 month ago
131
2
General

DB Where And - Is it possible?

Posted 1 month ago by Randy_Johnson

I am trying to do something like this, but looking in the documentation I could not find anything.

DB::table($this->tablex)->where('user_id', '=', Auth::user()->id)->and('product_id', '=', $slug)->delete();

Please sign in or create an account to participate in this conversation.