23 lines
387 B
PHP
23 lines
387 B
PHP
<?php
|
|
|
|
namespace Modules\Tms\Models;
|
|
|
|
use App\Contact;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class CustomsBroker extends Model
|
|
{
|
|
protected $table = 'tms_customs_brokers';
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected $casts = [
|
|
'is_active' => 'boolean',
|
|
];
|
|
|
|
public function contact()
|
|
{
|
|
return $this->belongsTo(Contact::class, 'contact_id');
|
|
}
|
|
}
|