skip to Main Content

multiple where clauses in Laravel query

I'm on Laravel 10, and new to it too. I did a simple query like this Sample::where( [ ['query_string', '=' , $string], ['from', '=', 'usa'], ['status_id', '=', '1'], ['created_at', '>', 'NOW() - INTERVAL 7 DAY'] ] )->toSql(); which generates a…

VIEW QUESTION
Back To Top
Search