Current File : /home/itiffy/public_html/app/ContactFormDb.php |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Laraveldaily\Quickadmin\Observers\UserActionsObserver;
use Illuminate\Database\Eloquent\SoftDeletes;
class ContactFormDb extends Model {
use SoftDeletes;
/**
* The attributes that should be mutated to dates.
*
* @var array
*/
protected $dates = ['deleted_at'];
protected $table = 'contactformdb';
protected $fillable = [
'name',
'email',
'phone_number',
'domain_name',
'comment'
];
public static function boot()
{
parent::boot();
ContactFormDb::observe(new UserActionsObserver);
}
}