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.
1. Create a template
You need to create a template _search.html.twig for example, in templates/layout/header folder.

2. Add a variable urls (which must be an array)
:warning: if you don't want to use the default url for entity you can define yours with th url option

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 :

How can I help you explore Laravel packages today?