You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
When I try to use the trait
UUIDIsPrimaryKey
I get an errorThe model is exactly as shown in the docs
I checked the mapping in
composer.json
and it looks fine, I can't understand whyHasUUID
is found whileUUIDIsPrimaryKey
is notThe text was updated successfully, but these errors were encountered: