Initial echomail import

This commit is contained in:
Deon George
2019-04-27 23:57:39 +10:00
parent 6515c91270
commit 9ba790e72c
14 changed files with 387 additions and 20 deletions

25
app/Models/Echomail.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Echomail extends Model
{
protected $dates = ['date'];
public function kludges()
{
return $this->belongsToMany(Kludge::class);
}
public function seenbys()
{
return $this->belongsToMany(Seenby::class,NULL,NULL,'node_id');
}
public function paths()
{
return $this->belongsToMany(Path::class,NULL,NULL,'node_id');
}
}