Support the ongoing development of Laravel.io →
posted 8 years ago
Eloquent
Last updated 1 year ago.
0
Solution

onWriteConnection() is for querying on write connection. If you already have read/write connections set up, you just create a user as usual:

$user = new \App\User;
$user->name = \Input::get('name');
//...
$user->status = \Input::get('status');
$user->save();
0

Wow, you are amazing and help me a lot.

Thank you very much.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

yelmous yelmous Joined 25 May 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.