laravel-bakery icon indicating copy to clipboard operation
laravel-bakery copied to clipboard

List fields have no filters in CollectionFilter

Open erikgaal opened this issue 6 years ago • 0 comments

Describe the bug List fields have no filter inputs in the CollectionFilterType.

To Reproduce Add a list field to a definition and no filter input fields are created for it. In the following example there are no filter inputs in the ArticleFilter for the values field.

class ArticleDefinition {
    use Introspectable;

    public function fields(): array
    {
        return [
            'title' => Bakery::string(),
            'values' => Bakery::string()->list(),
        ];
    }
} 
  • Laravel Version: [e.g. 5.6.23]
  • Bakery Version: 2.0.0-beta.1

erikgaal avatar Aug 22 '18 11:08 erikgaal