<?php
namespace Modules\VisitorMessage\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Modules\Issue\Models\Issue;

class VisitorMessage  extends Model
{
    use SoftDeletes;


    protected $fillable = [
        'name',
        'email',
        'phone',
        'subject',
        'message',
        'read',
        'reply'
    ];


    /**
     * Return all replies for message
     * @return HasMany
     */
    public function replies() :HasMany
    {
        return $this->hasMany(VisitorMessageReply::class);
    }


}
