'array', 'enabled' => 'boolean']; } public function versions() { return $this->hasMany(NasScriptPolicyVersion::class); } public function latestVersion() { return $this->hasOne(NasScriptPolicyVersion::class)->ofMany('version', 'max'); } }