4 years ago

i have a question about db read/write

Posted 4 years ago by skyhackvip

it's about db read/write

when i use DB::connection to indicate the connection like this:

$result = DB::connection('mysql::write')->select('SELECT * FROM myuser');

it will read from write database.but after that, i want it be resume (that means query read from read db, write to write db).

but it seems in this request all the query is connecting to write db.

How can i resume??

Please sign in or create an account to participate in this conversation.