mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 04:24:00 +00:00
8a28eb1790
This reverts merge request !5
22 lines
376 B
PHP
22 lines
376 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Classes\Constants;
|
|
|
|
class Contact extends AbstractModel
|
|
{
|
|
|
|
protected $table = 'contacts';
|
|
|
|
protected $fillable = [
|
|
'type', 'reference_id', 'name', 'designation', 'contact', 'email'
|
|
];
|
|
|
|
public function companyContacts($query)
|
|
{
|
|
return $query->where('type', Constants::MODULE_TYPES['company']);
|
|
}
|
|
|
|
}
|