Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sharp Laravel Package

code16/sharp

Code-driven CMS framework for Laravel (PHP 8.3+/Laravel 11+). Build admin/CMS sections with a clean UI and strong DX: CRUD with validation, search/sort/filter, bulk or custom commands, and authorization—no front-end code required, data-agnostic.

View on GitHub
Deep Wiki
Context7

Tags

Class: Code16\Sharp\Form\Fields\SharpFormTagsField

Configuration

setCreatable(bool $creatable = true)

If true, the user can create a new value from the form. Default: false.

setCreateText(string $createText)

The text displayed to the user when creating a new value. Default: "Create"

setCreateAttribute(string $attribute)

The name of the attribute which should be used for the creation.

setCreateAdditionalAttributes(array $attributes)

Optional additional attributes to be set at creation. Example: with ->setCreateAdditionalAttributes(["group"=>"public"]), the group attribute of a created tag would be set to "public". Default: []

setIdAttribute(string $idAttribute)

Set the id name attribute of tags. Default: "id"

setDisplayAsDropdown()

Display as a classic dropdown.

setMaxTagsCount(int $maxTagCount)

Set a maximum tags selection. Default: unlimited.

setMaxTagCountUnlimited

Unset a maximum tags selection.

setInline(bool $inline = true)

Display an inline checklist (if multiple + display=list).

Formatter

  • toFront: expects an array of id values OR an array of models.

  • fromFront: returns an array of arrays with the "id" key, and the "createAttribute" key in creation case:

[
    ["id" => 1],
    ["id" => null, "name" => "Bob Marley]
]

In this example, the user selected one tag and created another one with the "Bob Marley" text.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope