mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 20:44:01 +00:00
43 lines
703 B
PHP
43 lines
703 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
|
|
/**
|
|
* Class Contact
|
|
* @package App\Models
|
|
* @version August 5, 2020, 10:46 pm
|
|
*
|
|
* @property \App\Models\Contact contact
|
|
* @property string name
|
|
* @property string designation
|
|
* @property string email
|
|
* @property string phone
|
|
* @property string wechat_id
|
|
*/
|
|
class Contact extends AbstractModel
|
|
{
|
|
|
|
use SoftDeletes;
|
|
|
|
|
|
protected $table = 'contacts';
|
|
|
|
|
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
|
|
/**
|
|
* @return HasOne
|
|
*/
|
|
public function company(): HasOne
|
|
{
|
|
return $this->hasOne(Company::class, 'company_id', 'id');
|
|
}
|
|
|
|
}
|