That adds a AND between the two where clauses. To use OR, just use orWhere() :)
Anyway if you want to print a raw sql string constructed with eloquent use var_dump($query->toSql());
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community