Support the ongoing development of Laravel.io →

igor-kamil

Joined 22 Apr 2014

Statistics

Threads 1
Replies 1
Solutions 1
Articles 0

id empty after creating new model

Hello! I'm creating new model using the mass assignment: $item = Item::create($itemAttributes); dd($...

0 Likes
1 Replies
Solved
replied 10 years ago

id empty after creating new model

solved. the problem was that I used non-integer primary key. the solution was just to add this line...

0 Likes
Solved

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.