popolla said:
I'd swear that I actually tried this before and it didn't work. blush Thanks, it does work :)
Model->create() will save it into the table and then update the new saved model variable and then you can use $model->id to get the new incremented id
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community