Skip to content

Commit

Permalink
Fix use of pivot model extending pivot instead of morphPivot
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Lake committed Jan 14, 2019
1 parent 8abce64 commit fe404fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Propertyable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Properties\Models;

use Illuminate\Database\Eloquent\Relations\Pivot;
use Illuminate\Database\Eloquent\Relations\MorphPivot;

class Propertyable extends Pivot
class Propertyable extends MorphPivot
{
protected $casts = [
'values' => 'json',
Expand Down

0 comments on commit fe404fe

Please sign in to comment.