Doesn't the query builder always return an array? So couldn't you just do this?
if (empty($res)) {
// do something
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community