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.
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.
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"
],
[...]
]
]
]
];
How can I help you explore Laravel packages today?