How can a MySQL clause INSERT DELAYED be done using Laravel’s Fluent?
How can a MySQL clause INSERT DELAYED be done using Laravel’s Fluent?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t, at least not with Fluent. Laravel provides you with ways to execute raw queries by way of the
DB::query()method.With
DB::query()you should be able to achieve your desired results.If for whatever reason it’s not working like it should, which mind you for some queries with
DB::query()they still just don’t work, then you’ll need to use the raw PDO object. You can get the PDO object viaDB::connection()->pdo, remember if you’re using a custom connection and not the default as defined in your configuration you’ll need to pass it in toDB::connection('connection_name')Further information can be found on the Laravel docs: http://laravel.com/docs/database/raw