re: Easily use UUIDs in Laravel VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Great post Wilbur, thank you. I think you can also just set public $incrementing = false;, which saves a few lines.
 

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

 

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

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.

code of conduct - report abuse