Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0
Solution

Nevermind, I just found it looking throught the Illuminate\Database\Eloquent\Model

/**
 * Indicates if the IDs are auto-incrementing.
 *
 * @var bool
 */
public $incrementing = true;

I imagine that I just need to set that to false on the appropiate models.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

dnetix dnetix Joined 21 Jan 2015

Moderators

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.