I have an account model. I define and save it as follows:
$account = new Account();
$account->email = $request->get('email');
$account->name = $request->get('name');
$account->save();
dd($account->id)
Why is the account ID not updated? I am using autoincremental id field. I see a record in the database.
source
share