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