use IlluminateSupportFacadesDB; class UserController extends Controller { public function index() { $users = DB::table('users')->select('id','name','email')->get(); return view('some-view')->with('users', $users); } }