I need to get the model of newly created records
$data = [['name' => 'john'], ['name' => 'Doe']];
$result = Model::insert($data);
But when I checked the $result
variable it was Boolean.
How can I get the newly created records?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire