Change domain view last seen to show last time an echomail came from that system
This commit is contained in:
@@ -118,7 +118,7 @@ class DomainController extends Controller
|
||||
if (! $o->public && ! Gate::check('admin',$o))
|
||||
abort(404);
|
||||
|
||||
$o->load(['zones.system','zones.domain','zones.addresses.nodes_hub']);
|
||||
$o->load(['zones.system','zones.domain','zones.addresses.nodes_hub','zones.addresses.echomail_from']);
|
||||
|
||||
return view('domain.view')
|
||||
->with('o',$o);
|
||||
|
@@ -534,7 +534,9 @@ class Address extends Model
|
||||
|
||||
public function echomail_from()
|
||||
{
|
||||
return $this->hasMany(Echomail::class,'fftn_id','id');
|
||||
return $this->hasMany(Echomail::class,'fftn_id','id')
|
||||
->orderBy('datetime','DESC')
|
||||
->limit(10);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user