1
would like to know if it is possible to recover the ID of a model at the time it is saved in the bank. I am using the following Eloquent method:
$modelo = Modelo::create(['ATT1' => 'valor1', 'ATT2'=>'valor2']);
The model is saved, but the primary key is not returned in the $model variable. I’m doing it right or there’s something wrong?
What is the primary key column called? It is varchar(2) auto-increment?
– Miguel