Either there is a quite dangerous bug in laravel or I just made a stupid assumption.
I believe that the following code: DB::statement(" INSERT INTO sometable (question, id) VALUES ('?',?)", array('random question?',1234)); should result in the execution of this SQL statement: SQL: INSERT INTO sometable (question, id) VALUES ('howyadoin?',1234); but instead laravel executes this: SQL: INSERT INTO sometable (question, id) VALUES ('howyadoin1234',?);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community