Use larabel, I have table in database with fields int and returns type int
It is on the local machine. But when I do the same on the production server returns the row and because of this many breaks in the program.
PS our database there if you look at the value of all fields as int
Here is the code receiving records from a database
$promocode = Promocode::where('code', '=', $code)->first();
Here is the answer on the local server
Here is the answer in production