Eloquent DataTables casts all attributes to string

Eloquent DataTables casts all attributes to a string, even int ids.

PHP 7.2

Laravel Version 5.5

Yajra laravel-datatables Version 8.4

Mysql 5.8

Code snippet of problem

return \DataTables::eloquent(Users::where('isActive',1))
->make(true);


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3eJaG1K
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

I am unable to figure out how to create payment collection request, after a form has been submitted in laravel

laravel, mysql transaction not working after failed one time