Multiple select query in same Laravel view


I got a problem when I want to show my data in view from same table but I just need one of field in that table..   through controller there were function index() and setID()

This is my controller

public function index(){   $wo = DB::select('select max(nowo)+1 as nowo