belongsTo(Domain::class); } /* SCOPES */ /** * Only query active records */ public function scopePublic() { return $this->where('public',TRUE); } }