Files
hortusfox-web/app/models/VersionModel.php
2023-12-30 14:25:03 +01:00

18 lines
411 B
PHP

<?php
/**
* This class extends the base model class and represents your associated table
*/
class VersionModel extends \Asatru\Database\Model {
/**
* @return string
*/
public static function getSqlVersion()
{
try {
return static::raw('SELECT VERSION() AS version')->first()->get('version');
} catch (\Exception $e) {
return '';
}
}
}