added event attachments support

This commit is contained in:
2023-04-01 07:23:26 +10:00
parent 8305f16dae
commit eb32c99764
5 changed files with 177 additions and 3 deletions

View File

@@ -32,11 +32,12 @@ class Event extends Model
'ages',
];
/**
* Get all of the post's attachments.
*/
public function attachments()
{
return $this->morphMany('App\Attachment', 'attachable');
return $this->morphMany('App\Models\Attachment', 'attachable');
}
}