DEV Community

Discussion on: Easily use UUIDs in Laravel

Collapse
 
wilburpowery profile image
Wilbur Powery

Thanks Owen. You're right, setting that to false is much easier, thanks for pointing it out.

Collapse
 
guernseygreen profile image
St Pierre d'Guernsey

Using public $incrementing = false; doesn't work as it gives you a dual declaration if you use the trait - stick to getIncrementing

Thread Thread
 
pstevek profile image
Steve Kamanke

That's only if you use do decide to use a Trait. If you're only using it on only one model then you don't need to create a Trait. public $incrementing = false; would work as intended.