Skip to content

Commit

Permalink
Add slave relation definition to DeferredBinding
Browse files Browse the repository at this point in the history
You don't need to use this. Until you do, and then god help us all.
  • Loading branch information
LukeTowers authored Aug 4, 2024
1 parent 339af87 commit bc8f449
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Database/Models/DeferredBinding.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class DeferredBinding extends Model
*/
protected $nullable = ['pivot_data'];

public $morphTo = [
'slave' => [],
];

/**
* Prevents duplicates and conflicting binds.
*/
Expand Down

0 comments on commit bc8f449

Please sign in to comment.