File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public static function of($query)
58
58
*
59
59
* @return null
60
60
*/
61
- public function make ($ mDataSupport =false )
61
+ public function make ($ mDataSupport =false , $ raw = false )
62
62
{
63
63
$ this ->mDataSupport = $ mDataSupport ;
64
64
$ this ->create_last_columns ();
@@ -67,7 +67,7 @@ public function make($mDataSupport=false)
67
67
$ this ->init_columns ();
68
68
$ this ->regulate_array ();
69
69
70
- return $ this ->output ();
70
+ return $ this ->output ($ raw );
71
71
}
72
72
73
73
/**
@@ -508,7 +508,7 @@ private function getColumnName($str)
508
508
*
509
509
* @return null
510
510
*/
511
- private function output ()
511
+ private function output ($ raw = false )
512
512
{
513
513
$ sColumns = array_merge_recursive ($ this ->columns ,$ this ->sColumns );
514
514
@@ -523,6 +523,11 @@ private function output()
523
523
if (Config::get ('app.debug ' , false )) {
524
524
$ output ['aQueries ' ] = DB ::getQueryLog ();
525
525
}
526
- return Response::json ($ output );
526
+ if ($ raw ) {
527
+ return $ output ;
528
+ }
529
+ else {
530
+ return Response::json ($ output );
531
+ }
527
532
}
528
533
}
You can’t perform that action at this time.
0 commit comments