<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * @property mixed replies
 */
class VisitorRequest extends Model
{
    use SoftDeletes;

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


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