Skip to content

Commit

Permalink
Add --force flag to allow the user to regenerate board file if it alr…
Browse files Browse the repository at this point in the history
…eady exists mokhosh#59

Instead of removing the kanban board file then run the command again, user can add --force and voila!
  • Loading branch information
Cybrarist committed Oct 1, 2024
1 parent 439b0f2 commit b60e7b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Commands/MakeKanbanBoardCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ class MakeKanbanBoardCommand extends GeneratorCommand
public $description = 'Create a filament kanban board page';

protected $signature = 'make:kanban {name} {--force : Force kanban board to recreated}';

protected function getStub()
{
return file_exists($customPath = $this->laravel->basePath('/stubs/filament-kanban/board.stub'))
? $customPath
: __DIR__ . '/../../stubs/board.stub';
: __DIR__.'/../../stubs/board.stub';
}

protected function getDefaultNamespace($rootNamespace)
{
return $rootNamespace . '\Filament\Pages';
return $rootNamespace.'\Filament\Pages';
}
}

0 comments on commit b60e7b9

Please sign in to comment.