File tree Expand file tree Collapse file tree 5 files changed +33
-197
lines changed
Expand file tree Collapse file tree 5 files changed +33
-197
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/php
2+ <?php
3+
4+ /*
5+ * This file is part of laravel-filemanager.
6+ *
7+ * For the full copyright and license information, please view the LICENSE
8+ * file that was distributed with this source code.
9+ */
10+
11+ $ composerLock = file_get_contents ('composer.lock ' );
12+ $ jsonComposerLock = json_decode ($ composerLock );
13+ foreach ($ jsonComposerLock ->packages as $ package ) {
14+ if ($ package ->name == 'unisharp/laravel-filemanager ' )
15+ $ lfmVersion = $ package ->version ;
16+
17+ if ($ package ->name == 'laravel/framework ' )
18+ $ laravelVersion = $ package ->version ;
19+
20+ if (isset ($ lfmVersion ) && isset ($ laravelVersion ))
21+ break ;
22+ }
23+ $ imagickCheck = extension_loaded ('imagick ' ) ? 'Install ' : 'Not Install ' ;
24+ $ gfCheck = extension_loaded ('gd ' ) ? 'Install ' : 'Not Install ' ;
25+
26+ // show the basic information for debug message
27+ echo 'OS System & Version: ' . php_uname () . PHP_EOL ;
28+ echo 'Laravel Version: ' . $ laravelVersion . PHP_EOL ;
29+ echo 'File Manager Version: ' . $ lfmVersion . PHP_EOL ;
30+ echo 'imagick Extension: ' . $ imagickCheck . PHP_EOL ;
31+ echo 'gd Extension: ' . $ gfCheck . PHP_EOL ;
Original file line number Diff line number Diff line change 4040 "psr-4" : {
4141 "Unisharp\\ Laravelfilemanager\\ " : " src/"
4242 }
43- }
43+ },
44+ "bin" : [" bin/debug" ]
4445}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8787 ]);
8888
8989 Route::get ('/demo ' , 'DemoController@index ' );
90-
91- // debug page
92- Route::get ('/debug ' , 'DebugController@index ' );
9390});
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments