Skip to content

Commit 480c5cf

Browse files
committed
chore: upload install
1 parent 995ce25 commit 480c5cf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

config/markets.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
return [
1010
'paths' => [
1111
'base' => base_path('plugins'),
12+
'uploads' => base_path('storage/plugins/uploads'),
1213
'downloads' => base_path('storage/plugins/downloads'),
1314
'unzip_target_path' => base_path('storage/plugins/.tmp'),
1415
],

src/Commands/MarketRequireCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MarketRequireCommand extends Command
2020
protected $signature = 'market:require {fskey}
2121
{--install_type= : Plugin installation type}';
2222

23-
protected $description = 'require fresns extensions';
23+
protected $description = 'require fresns plugin';
2424

2525
protected $packageType = null;
2626

@@ -41,6 +41,10 @@ public function isComposerPackage(string $fskey)
4141

4242
public function getPluginPath($fskey)
4343
{
44+
if (str_starts_with($fskey, '/')) {
45+
return $fskey;
46+
}
47+
4448
$pluginsPath = config('markets.paths.base');
4549

4650
return sprintf('%s/%s', rtrim($pluginsPath), ltrim($fskey, '/'));

0 commit comments

Comments
 (0)