mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-31 18:34:07 +00:00
27 lines
456 B
PHP
27 lines
456 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Spatie\Activitylog\Traits\LogsActivity;
|
|
|
|
class Company extends Model
|
|
{
|
|
|
|
use LogsActivity;
|
|
|
|
protected $table = 'companies';
|
|
|
|
protected $fillable = [
|
|
'marking', 'name', 'email', 'registration_no', 'tax_no'
|
|
];
|
|
|
|
protected static $logFillable = true;
|
|
|
|
public function addressBook()
|
|
{
|
|
return $this->hasMany('App\Models\AddressBook');
|
|
}
|
|
|
|
}
|