Skip to content
Discussion options

You must be logged in to vote

First of all, most polymorphic relationships would either expect relationships with foreign keys to consistently be UUID or numeric ID. If all models in your application use UUID (string) as the primary key then you should be able to run the following:

app('db.schema')->morphUsingUuids();

This would tell Nova/Laravel to migrate action_events using string.

If you have a mixed numeric ID and UUID combination you should either export the database migration and handle it on your own or completely disable action_events by updating config/nova.php with the following:

return [

    /*
    |--------------------------------------------------------------------------
    | Nova Action Resource Class

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@philipbaginski
Comment options

@flexchar
Comment options

Answer selected by crynobone
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #4114 on April 26, 2022 08:49.