novafieldcheckboxes
novafieldcheckboxes copied to clipboard
Laravel Nova Checkboxes Field
This break nova 3 support so it needs to be a major number change.
Use Case: - Utilizing nova field method : ->help() for displaying help text. - As a bonus, remove the old error text and fallback to nova field default error text...
This PR fix the overflow of labels on detail and form screens. **Issue screenshots:**  
A method isChild() was added to src/SortableCheckboxes.php that checks whether the current checkbox is a child Usage Exemple : ``` /** * Get the fields displayed by the resource. *...
Having this only slows down the initial request to Laravel Nova. laravel/nova-issues#3474
When I try to update the checkbox selections , it dont work. TypeError: this.value.filter is not a function at a.toggleOption (novafieldcheckboxes:1) at input (novafieldcheckboxes:1) at It (vendor.js?id=8e2b892a6851ec634c14:1) at a.n (vendor.js?id=8e2b892a6851ec634c14:1)...
```php return [ ID::make(__('ID'), 'id')->sortable(), Text::make('Title')->rules(['required']), Trix::make('Body')->rules(['required']), Boolean::make('Is Published'), BelongsTo::make('User')->rules(['required']), Checkboxes::make('Categories')->options(PostCategories::pluck('name')->toArray()), Checkboxes::make('Tags')->options(PostTags::pluck('tag')->toArray()), ]; ``` this is my migration ```php Schema::create('posts', function(Blueprint $table) { $table->id(); $table->integer('user_id')->nullable(false); $table->string('title')->nullable(false); $table->string('tags'); $table->text('body')->nullable(false); $table->string('category'); $table->string('is_published')->default(false);...