DEV Community

Discussion on: Easily use UUIDs in Laravel

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.