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

[6.x] Change DatabaseNotification keyType to match uuid #30823

Merged
merged 1 commit into from
Dec 12, 2019
Merged

[6.x] Change DatabaseNotification keyType to match uuid #30823

merged 1 commit into from
Dec 12, 2019

Commits on Dec 12, 2019

  1. Change DatabaseNotification keyType to match uuid

    The default primary key for database notifications is a UUID, but the default `keyType` (from the base model) is an `int`. This causes ids with string UUIDs to be force cast as integers in MorphTo and other relationships.
    
    https://github.com/laravel/framework/blob/f5c3c60d52eccd77274e586fc4c775374e826b0f/src/Illuminate/Database/Eloquent/Relations/Relation.php#L310-L323
    Kenneth Keegan authored Dec 12, 2019
    Configuration menu
    Copy the full SHA
    32a9784 View commit details
    Browse the repository at this point in the history