Winter CMS resources and help articles

Simple and to the point. Optimized by the community.

Determining the WinterCMS version

2
by DamsFX, last modified on September 21st, 2022

If you need to determine which major version of WinterCMS your plugin is running on, you can use :

use Illuminate\Foundation\Application as Laravel;

if (version_compare(Laravel::VERSION, '9.0.0', '>=')) {
    // WinterCMS 1.2.x
} else {
    // WinterCMS 1.1.x
}

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?