Page MenuHomePhorge

Connect.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

Connect.php

<?php
namespace App\Policy\Greylist;
use Illuminate\Database\Eloquent\Model;
/**
* @property \App\Domain $domain
* @property \App\Domain|\App\User $recipient
* @property \App\User $user
*/
class Connect extends Model
{
protected $fillable = [
'sender_local',
'sender_domain',
'net_id',
'net_type',
'recipient_hash',
'recipient_id',
'recipient_type',
'connect_count',
'created_at',
'updated_at'
];
protected $table = 'greylist_connect';
public function domain()
{
if ($this->recipient_type == \App\Domain::class) {
return $this->recipient;
}
return null;
}
// determine if the sender is a penpal of the recipient.
public function isPenpal()
{
return false;
}
public function user()
{
if ($this->recipient_type == \App\User::class) {
return $this->recipient;
}
return null;
}
public function net()
{
return $this->morphTo();
}
public function recipient()
{
return $this->morphTo();
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Nov 20, 5:05 PM (17 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
386787
Default Alt Text
Connect.php (1 KB)

Event Timeline