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

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'))
? $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 f1043fe

Please sign in to comment.