Skip to content

Commit 49904ff

Browse files
authored
Merge pull request #29 from treckstar/hotfix/install-add-menu-content-command
fix: replace `add-sidebar-content`
2 parents 9cd439c + c2acd32 commit 49904ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Console/Commands/Install.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ public function handle()
5050
$this->closeProgressBlock();
5151

5252
// Adding sidebar menu item
53-
$this->progressBlock('Adding sidebar menu item');
54-
$this->executeArtisanProcess('backpack:add-sidebar-content', [
55-
'code' => '<li class="nav-item"><a class="nav-link" href="{{ backpack_url(\'elfinder\') }}"><i class="nav-icon la la-files-o"></i> <span>{{ trans(\'backpack::crud.file_manager\') }}</span></a></li>',
53+
$this->progressBlock('Adding menu item');
54+
$this->executeArtisanProcess('backpack:add-menu-content', [
55+
'code' => '<x-backpack::menu-item :title="trans(\'backpack::crud.file_manager\')" icon="la la-files-o" :link="backpack_url(\'elfinder\')" />',
5656
]);
5757
$this->closeProgressBlock();
5858

5959
// Done
6060
$url = Str::of(config('app.url'))->finish('/')->append('admin/elfinder');
6161
$this->infoBlock('Backpack FileManager installation complete.', 'done');
62-
$this->note("Go to <fg=blue>$url</> to access your filemanager.");
62+
$this->note('Go to <fg=blue>$url</> to access your filemanager.');
6363
$this->note('You may need to run <fg=blue>php artisan serve</> to serve your Laravel project.');
6464
$this->newLine();
6565
}

0 commit comments

Comments
 (0)