Working with combined expressions in WHERE clauses in Laravel 4

2 thoughts on “Working with combined expressions in WHERE clauses in Laravel 4”

  1. Small formatting bug:
    return User::where("status", 1)
    ->where(function ($query) use ($fname, $lname) {
    $query->where("fname", ‘=’, $fname)
    ->orwhere("lname", ‘=’, $lname);
    })
    -&gt

Leave a Reply

Your email address will not be published. Required fields are marked *