Skip to content

Commit

Permalink
Add notable_type and notable_id to be fillable
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-raadi committed Apr 6, 2023
1 parent 96ed34b commit 6aa9d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Note.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Note extends Model
{
protected $table = 'nova_notes';
protected $casts = ['system' => 'bool'];
protected $fillable = ['model_id', 'model_type', 'text', 'created_by', 'system'];
protected $fillable = ['model_id', 'model_type', 'text', 'created_by', 'system', 'notable_type', 'notable_id'];
protected $hidden = ['createdBy', 'notable_type', 'notable_id'];
protected $appends = ['created_by_avatar_url', 'created_by_name', 'can_delete'];

Expand Down

0 comments on commit 6aa9d60

Please sign in to comment.