skip to Main Content

Laravel Eloquent add a WHERE xy IS NULL condition

I use Laravel 10. I try to fetch some data from my mariaDB with the following condition. $contentList = $this->get(); foreach($contentList as $content){ $this->product()->where('id', '=', $content->content_product_id)->ddRawSql(); } But the query I get is: select * from `radio_content_products` where `radio_content_products`.`id` is…

VIEW QUESTION
Back To Top
Search