21 lines
360 B
PHP
21 lines
360 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class Netmail extends Model
|
||
|
{
|
||
|
protected $dates = ['date'];
|
||
|
protected $fillable = ['date','msgid','from_ftn'];
|
||
|
|
||
|
public function kludges()
|
||
|
{
|
||
|
return $this->belongsToMany(Kludge::class);
|
||
|
}
|
||
|
|
||
|
public function paths()
|
||
|
{
|
||
|
return $this->belongsToMany(Path::class,NULL,NULL,'node_id');
|
||
|
}
|
||
|
}
|