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

UUIDIsPrimaryKey trait not found #11

Open
phaberest opened this issue Apr 29, 2020 · 1 comment
Open

UUIDIsPrimaryKey trait not found #11

phaberest opened this issue Apr 29, 2020 · 1 comment

Comments

@phaberest
Copy link

phaberest commented Apr 29, 2020

When I try to use the trait UUIDIsPrimaryKey I get an error

Trait 'BinaryCabin\LaravelUUID\Traits\UUIDIsPrimaryKey' not found

The model is exactly as shown in the docs

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use BinaryCabin\LaravelUUID\Traits\HasUUID;
use BinaryCabin\LaravelUUID\Traits\UUIDIsPrimaryKey;

class User extends Model
{
    use HasUUID, UUIDIsPrimaryKey;
    //
}

I checked the mapping in composer.json and it looks fine, I can't understand why HasUUID is found while UUIDIsPrimaryKey is not

@blakekrone
Copy link

It's because the latest release isn't the last commit that has that file. You need to create it manually until a new release is created.

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