/** * Get the parent model of the relation. * * @return \Illuminate\Database\Eloquent\Model * @static */ public static function getParent() { //Method inherited from \Illuminate\Database\Eloquent\Relations\Relation return \Illuminate\Database\Eloquent\Relations\HasMany::getParent(); }