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.
Class: Code16\Sharp\Show\Fields\SharpShowPictureField
The picture field has no configuration.
You must value this field with an URL of the image.
If you are using Sharp built-in Upoad solution, be sure to use the SharpUploadModelThumbnailUrlTransformer:
function find($id): array
{
return $this
->setCustomTransformer(
'picture',
new SharpUploadModelThumbnailUrlTransformer(600)
)
->transform([...]);
}
How can I help you explore Laravel packages today?