mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-29 09:24:12 +00:00
71 lines
2.5 KiB
PHP
71 lines
2.5 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Eloquent;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use Illuminate\Database\Eloquent\Relations\MorphTo;
|
|
use Illuminate\Database\Query\Builder;
|
|
use Illuminate\Support\Carbon;
|
|
use Spatie\Activitylog\Models\Activity;
|
|
|
|
/**
|
|
* Class Contact
|
|
*
|
|
* @package App\Models
|
|
* @property int owner_id
|
|
* @property string owner_type
|
|
* @property string reference
|
|
* @property string phone
|
|
* @property string email
|
|
* @property string wechat_id
|
|
* @property int default
|
|
* @property int $id
|
|
* @property Carbon|null $deleted_at
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
* @property-read Collection|Activity[] $activities
|
|
* @property-read int|null $activities_count
|
|
* @property-read Model|Eloquent $causer
|
|
* @property-read Model|Eloquent $owner
|
|
* @property-read Model|Eloquent $subject
|
|
* @property-read Model|Eloquent $target
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact newQuery()
|
|
* @method static Builder|Contact onlyTrashed()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereDefault($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereDeletedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereEmail($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereOwnerId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereOwnerType($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact wherePhone($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereReference($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereUpdatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereWechatId($value)
|
|
* @method static Builder|Contact withTrashed()
|
|
* @method static Builder|Contact withoutTrashed()
|
|
* @mixin Eloquent
|
|
*/
|
|
class Contact extends AbstractModel
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'contacts';
|
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
/**
|
|
* @return MorphTo
|
|
*/
|
|
public function owner(): morphTo
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
|
|
}
|