Answer the question
In order to leave comments, you need to log in
How to create a database entry using Eloquent?
There are two connections in the settings: local database and remote. You need to create an entry in the remote.
$model = new \App\Models\Setting();
$model->setConnection($request->dataset['connection']);
$model->create($request->all());
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question