Files
Omair Saleh 6317736643 large commit
2019-10-05 14:30:00 +08:00

20 lines
357 B
PHP

<?php
namespace App\Models;
class Company extends AbstractModel
{
protected $table = 'companies';
protected $fillable = [
'marking', 'name', 'email', 'registration_no', 'tax_no'
];
public function addressBook()
{
return $this->hasMany('App\Models\AddressBook', 'reference_id', 'id')->where('type', '=', 1);
}
}