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

Crudit Bundle Laravel Package

2lenet/crudit-bundle

Symfony bundle to rapidly build configurable CRUD back offices with SB Admin layout. Provides list views with pagination, sorting, actions, exports and batch ops, plus datasources, filters, menus, workflows, maps, markdown and Twig helpers.

View on GitHub
Deep Wiki
Context7

Override default template

When you override a brick, you sometimes have to use your own template.

To do this, you can use the ->setTemplate method and specify the path to your template

:warning: The path you need to specify is only the folder where your index.html.twig file is located.

$indexBricks[] = ListConfig::new()
    ->addFields($this->getFields(CrudConfigInterface::INDEX))
    ->setTemplate('crudit/commande/list');

How to display the brick under certain conditions

You can add conditions to the brick, using the resource or the request, in order to decide whether to display the brick based on the data or the request.

To do this, simply use setDisplayIf (for the data) or setDisplayIfByRequest (for the request):

SublistConfig::new('subResourceField', $this->subResourceCrudConfig)
    ->setFields($this->subResourceCrudConfig->getFields(CrudConfigInterface::INDEX))
    ->setActions($this->subResourceCrudConfig->getItemActions())
    ->setDisplayIf(fn(Resource $resource) => $resource->isActive())
    ->setDisplayIfByRequest(fn(Request $request) => $request->query->has('actif'))
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.
bugban/php-sdk
littlerocket/job-queue-bundle
graham-campbell/flysystem
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
directorytree/opensearch-client
directorytree/opensearch-adapter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php