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 da6e95e commit 72a2905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/MakeKanbanBoardCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

class MakeKanbanBoardCommand extends GeneratorCommand
{
public $name = 'make:kanban';

public $description = 'Create a filament kanban board page';

public $type = 'Kanban 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'))
Expand Down

0 comments on commit 72a2905

Please sign in to comment.