Last active
December 15, 2021 07:52
-
-
Save amberlex78/beb3cb307a7dbaec87cfb1067382ad27 to your computer and use it in GitHub Desktop.
Laravel: Get mysql version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$v = \DB::select("select version()")[0]->{"version()"}; | |
$v = explode('-', $v)[0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment