laravel/framework — pull request #4914 by rodrigore (2014-07-01 03:29:02+00:00)
Title: [Bug] Fix "processInsertGetId" in a read/write connection:

When Laravel call the "processInsertGetId" method a select method is executed but this method execute an INSERT and SELECT at the same time, which make that the query fails in the cases when the 'read' machine can only execute SELECT statements. I posted a question in SO with a little more information http://stackoverflow.com/questions/24499839/cannot-execute-insert-in-a-read-only-transaction-laravel-read-write

There must be a more elegant solution, but I hope Taylor that you can merge this simple solution because I need this:+1: