28 lines
516 B
PHP
28 lines
516 B
PHP
<?php
|
|
|
|
namespace Modules\Tms\Models;
|
|
|
|
use App\User;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class CustomsStatusLog extends Model
|
|
{
|
|
protected $table = 'tms_customs_status_logs';
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected $casts = [
|
|
'logged_at' => 'datetime',
|
|
];
|
|
|
|
public function clearance()
|
|
{
|
|
return $this->belongsTo(CustomsClearance::class, 'customs_clearance_id');
|
|
}
|
|
|
|
public function creator()
|
|
{
|
|
return $this->belongsTo(User::class, 'created_by');
|
|
}
|
|
}
|