1 month ago

Database Help -> Join with Where!

Posted 1 month ago by Randy_Johnson

The code below isn't working but am guessing from looking at it you can catch my drift of what I am going for. I haven't implemented and Eloquent stuff yet because I never did models, since am looking for perfection on the project its something I will just go over and tie in at the end so for the mean time, if possible can we skip on the Eloquent.

return $users = DB::table($this->tablex)
            ->join('users', 'users.id', '=', 'carts.user_id')
            ->where(Auth::user()->id, '=', 'carts.user_id')

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