Level 50
Have you tried..
$quiz->id
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I just saved a quiz object into table quizzes via
$quiz->save()
Now I need to access its id, what would be the best way to do this?
Please or to participate in this conversation.