Skip to content

Commit 48df360

Browse files
committed
fix: minor fix for command
1 parent 3e91af9 commit 48df360

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/AdminLTEPreset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function installAuth()
8282
$this->ensureDirectoriesExist($viewsPath);;
8383

8484
foreach ($this->views as $key => $value) {
85-
if (file_exists($view = LaravelUtils::getViewPath($value)) && !$this->command->option('force')) {
85+
if (file_exists($view = LaravelUtils::getViewPath($value))) {
8686
if (!$this->command->confirm("The [{$value}] view already exists. Do you want to replace it?")) {
8787
continue;
8888
}

src/AdminLTEPresetServiceProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
namespace InfyOm\AdminLTEPreset;
44

5-
use Illuminate\Console\Command;
65
use Illuminate\Support\ServiceProvider;
76
use Laravel\Ui\UiCommand;
87

98
class AdminLTEPresetServiceProvider extends ServiceProvider
109
{
1110
public function boot()
1211
{
13-
UiCommand::macro('adminlte', function (Command $command) {
12+
UiCommand::macro('adminlte', function (UiCommand $command) {
1413

1514
$command->info("AdminLTE Preset called");
1615

0 commit comments

Comments
 (0)