Initial netmail import
This commit is contained in:
21
app/Models/Netmail.php
Normal file
21
app/Models/Netmail.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user