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

How to add a multiple search

1. Create a template

You need to create a template _search.html.twig for example, in templates/layout/header folder.

img.png

2. Add a variable urls (which must be an array)

  • In this array you can add all of the urls you want to have in your multiple search.
  • For each url you need to define an entity, a title and a destUrl.
  • You can too add a limit to determine how many results you want to see (default: 10).

:warning: if you don't want to use the default url for entity you can define yours with th url option

img_1.png

3. Add an include

To make the multiple search work, you must include the following template :

[@LleCrudit](https://github.com/LleCrudit)/layout/sb_admin/elements/_multisearch.html.twig

Full example :

{% set urls = [
    {
        entity: "client",
        title: "field.client"|trans,
        limit: "20",
        destUrl: path('app_crudit_client_show', {'id': ' '})
    },
    {
        entity: "commande",
        title: "field.commande"|trans,
        limit: "20",
        destUrl: path('app_crudit_commande_show', {'id': ' '})
    },
    {
        entity: "importation",
        url: "/importation/autocomplete",
        title: "field.importation"|trans,
        destUrl: path('app_crudit_importation_show', {'id': ' '})
    }
]
%}

{% include '[@LleCrudit](https://github.com/LleCrudit)/layout/sb_admin/elements/_multisearch.html.twig' with { 'urls': urls } %}

The result :

img_3.png

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