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

Upgrading from 4.0 to 4.1

Menu syntax was updated

In Sharp 4.0, it was allowed to declare the entity key, for menus, like this:

"menu" => [
    [
        "label" => "Equipment",
        "entities" => [
            "spaceship" => [
                "label" => "Spaceships",
                "icon" => "fa-space-shuttle"
            ]
        ]
    ]
]

The key => value array syntax is now forbidden, for consistency. The right way is:

"menu" => [
    [
        "label" => "Equipment",
        "entities" => [
            [
                "entity" => "spaceship",  // notice the change here
                "label" => "Spaceships",
                "icon" => "fa-space-shuttle"
            ]
        ]
    ]
]

Notice there is now a dedicated doc section for menus.

Dashboards were generalized

The "only one Dashboard" limitation is gone, bringing more control and features (policies). As a consequence, if you previously declared a Dashboard, you'll need to adapt your configuration in sharp.php , as documented here, going from this:

return [
    "entities" => [
        [...]
    ],
    "dashboard" => \App\Sharp\Dashboard::class
];

to this:

return [
    "entities" => [
        [...]
    ],
    "dashboards" => [
        "dashboard" => [
            "view" => \App\Sharp\Dashboard::class
        ]
    ],
    [...]
    "menu" => [
        [
            "label" => "Company",
            "entities" => [
                [
                    "label" => "My Dashboard",
                    "icon" => "fa-dashboard",
                    "dashboard" => "dashboard"
                ],
                [...]
            ]
        ]
    ]
];
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.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
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