mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
25 lines
489 B
PHP
25 lines
489 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class TransactionMappingLog extends Model
|
|
{
|
|
protected $fillable = ['imported_by','data','imported_date','type'];
|
|
|
|
protected $casts = [
|
|
'data' => 'array',
|
|
];
|
|
|
|
public static function boot() {
|
|
parent::boot();
|
|
|
|
static::creating(function ($model) {
|
|
$model->imported_by = auth()->user()->id;
|
|
});
|
|
}
|
|
|
|
}
|