Mpociot\Versionable\VersionableTrait::currentVersion PHP Method

currentVersion() public method

Returns the latest version available
public currentVersion ( ) : Version
return Version
    public function currentVersion()
    {
        return $this->versions()->orderBy(Version::CREATED_AT, 'DESC')->first();
    }