Determining the WinterCMS version
2
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
}
There are no comments yet
Be the first one to comment