mercredi 22 avril 2020

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

Aucun commentaire:

Enregistrer un commentaire