Skip to content

Commit

Permalink
update the stub for version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mokhosh committed Feb 8, 2024
1 parent 699e6c5 commit 3107522
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions stubs/board.stub
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,6 @@ use Mokhosh\FilamentKanban\Pages\KanbanBoard;

class DummyClass extends KanbanBoard
{
protected function statuses(): Collection
{
// return StatusEnum::statuses();
}

protected function records(): Collection
{
// return Model::latest('updated_at')->get();
}

public function onStatusChanged(int $recordId, string $status, array $fromOrderedIds, array $toOrderedIds): void
{
// Model::find($recordId)->update(['status' => $status]);
// Model::setNewOrder($toOrderedIds);
}

public function onSortChanged(int $recordId, string $status, array $orderedIds): void
{
// Model::setNewOrder($orderedIds);
}
protected static ?string $model = Model::class;
protected static ?string $statusEnum = ModelStatus::class;
}

0 comments on commit 3107522

Please sign in to comment.