We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b10b5e + 0c8ed9b commit 65c8831Copy full SHA for 65c8831
src/Commands/InstallCommand.php
@@ -3,6 +3,7 @@
3
namespace Redberry\MailboxForLaravel\Commands;
4
5
use Illuminate\Console\Command;
6
+use Illuminate\Support\Facades\File;
7
8
class InstallCommand extends Command
9
{
@@ -12,6 +13,12 @@ class InstallCommand extends Command
12
13
14
public function handle(): int
15
16
+ $path = public_path('vendor/mailbox');
17
+
18
+ if (File::exists($path)) {
19
+ File::deleteDirectory($path);
20
+ }
21
22
$this->call('vendor:publish', [
23
'--tag' => 'mailbox-assets',
24
'--force' => (bool) $this->option('force'),
0 commit comments