Laravel version update
Laravel version update
This commit is contained in:
31
vendor/unisharp/laravel-filemanager/bin/debug
vendored
Normal file
31
vendor/unisharp/laravel-filemanager/bin/debug
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of laravel-filemanager.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
$composerLock = file_get_contents('composer.lock');
|
||||
$jsonComposerLock = json_decode($composerLock);
|
||||
foreach ($jsonComposerLock->packages as $package) {
|
||||
if ($package->name == 'unisharp/laravel-filemanager')
|
||||
$lfmVersion = $package->version;
|
||||
|
||||
if ($package->name == 'laravel/framework')
|
||||
$laravelVersion = $package->version;
|
||||
|
||||
if (isset($lfmVersion) && isset($laravelVersion))
|
||||
break;
|
||||
}
|
||||
$imagickCheck = extension_loaded('imagick') ? 'Install' : 'Not Install';
|
||||
$gfCheck = extension_loaded('gd') ? 'Install' : 'Not Install';
|
||||
|
||||
// show the basic information for debug message
|
||||
echo 'OS System & Version: ' . php_uname() . PHP_EOL;
|
||||
echo 'Laravel Version: ' . $laravelVersion . PHP_EOL;
|
||||
echo 'File Manager Version: ' . $lfmVersion . PHP_EOL;
|
||||
echo 'imagick Extension: ' . $imagickCheck . PHP_EOL;
|
||||
echo 'gd Extension: ' . $gfCheck . PHP_EOL;
|
Reference in New Issue
Block a user