php - larravel, Normal error Logged, but only One error with white screen -


i'm using laravel 5.4 withe laravel-datatables plugin

i have no problem debugger plugin , normal larval log error, reason, 1 of bug not show @ , laraval display white page no error :(

i believe code related eloquent relation ship problem follow code product white page error

return datatables::of(invoiceproduct::where('purchasing_order_id', 1))->make(true); 

the above error happen if database purchasing_orders not empty.

i using db try same result follow without , error

return datatables::of(db::select('select * invoice_products purchasing_order_id = ' . $id))->make(true); 

could please help, need see error can fix :(

thank time

you using query builder, not standard fetch result, need chain call ->get()

return datatables::of(invoiceproduct::where('purchasing_order_id', 1)->get())->make(true); 

this not create query execute it.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -