Abdellaziz
Abdellaziz

Reputation: 31

Specify database for eloquent updateOrCreate

So i work with Laravel 5.5, have two connections in my project how to specify the connection to use for eloquent updateOrCreate instruction

Upvotes: 1

Views: 79

Answers (1)

Abdellaziz
Abdellaziz

Reputation: 31

Use the instruction on('databasename') User::on('databasename')->updateOrCreate

Upvotes: 1

Related Questions