Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating new record manually setting primary UUID #32

Closed
markaduffy opened this issue Jan 23, 2020 · 1 comment
Closed

Creating new record manually setting primary UUID #32

markaduffy opened this issue Jan 23, 2020 · 1 comment

Comments

@markaduffy
Copy link

markaduffy commented Jan 23, 2020

Can you tell me how I might do this. I have a backup database that I want to insert records with id/UUID primary key set using eloquent create() method. Basically, I want to export UUID to new database using same model, without generating new UUID

class User extends Model
{
    use Uuids;

    public $incrementing = false;

    protected $fillable = [
        'id',
@markaduffy markaduffy changed the title Creating New Record setting Primary UUID Creating new record manually setting primary UUID Jan 23, 2020
@EmadAdly
Copy link
Owner

I guess after removing use Uuids you will all normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants