X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/platform/plugins/contact/src/Models
home
/
gfecatvj
/
sites
/
restate
/
platform
/
plugins
/
contact
/
src
/
Models
/
📁
..
📄
Contact.php
(1.01 KB)
📄
ContactReply.php
(573 B)
Editing: Contact.php
<?php namespace Botble\Contact\Models; use Botble\Base\Traits\EnumCastable; use Botble\Contact\Enums\ContactStatusEnum; use Botble\Base\Models\BaseModel; class Contact extends BaseModel { use EnumCastable; /** * The database table used by the model. * * @var string */ protected $table = 'contacts'; /** * The date fields for the model.clear * * @var array */ protected $dates = [ 'created_at', 'updated_at', ]; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'email', 'phone', 'address', 'subject', 'content', 'status', ]; /** * @var array */ protected $casts = [ 'status' => ContactStatusEnum::class, ]; /** * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function replies() { return $this->hasMany(ContactReply::class); } }
Upload File
Create Folder