Laravel-datatables: Dispaly Sql Query in sql

Created on 17 Dec 2016  路  2Comments  路  Source: yajra/laravel-datatables

screenshot_1

Summary of problem or feature request

Hi iam using datatables with backend laravel and frontend angular.js. when i fetch data using querybuilder it shows whole sql query in my console like this.

Code snippet of problem

return Datatables::queryBuilder((new IssuedBook())->getLibraryFeePayer(organizatoinId(), $inputs))
->editColumn('fine_amount', function($result) {
return twoDecimal($result->fine_amount);
})->make(true)

System details

  • Operating System
  • PHP Version
  • Laravel Version
  • Laravel-Datatables Version
question

Most helpful comment

You need to disable APP_DEBUG=false to remove the queries on response. See docs for ref.

All 2 comments

You need to disable APP_DEBUG=false to remove the queries on response. See docs for ref.

Awo! its worked. Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vipin733 picture vipin733  路  3Comments

jgatringer picture jgatringer  路  3Comments

shadoWalker89 picture shadoWalker89  路  3Comments

hohuuhau picture hohuuhau  路  3Comments

techguydev picture techguydev  路  3Comments