$items = Item::join(‘Department’,’Item.DepartmentID’,’=’,’Department.ID’)
->select(DB::raw(‘CONCAT(Item.Name, Department.Name) as user_count’))
->where([‘Item.Active’=>1,’Item.WebsiteShow’=>1])->get();

Advertisements