8000 GitHub - lee-to/moonshine-kanban-board-resource
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lee-to/moonshine-kanban-board-resource

Repository files navigation

MoonShine kanban board resource

Requirements

  • MoonShine v3.0+

Installation

composer require lee-to/moonshine-kanban-board-resource

Get started

Example usage

use Leeto\MoonShineKanBan\Resources\KanBanResource;

class TaskResource extends KanBanResource
{
    protected string $title = 'title';

    protected string $sortColumn = 'sorting';

    // ... fields, model, etc ...

    public function statuses(): \Illuminate\Support\Collection
    {
        return Status::query()
            ->orderBy('sorting')
            ->pluck('name', 'id');
    }

    public function foreignKey(): string
    {
        return 'status_id';
    }

    // ...
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0