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

Admin Bundle Laravel Package

bbit/admin-bundle

View on GitHub
Deep Wiki
Context7

Appkernel:

new BBIT\AdminBundle\BBITAdminBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new BBIT\DataGridBundle\BBITDataGridBundle(),
new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),

Create AdminClass:

class ItemAdmin extends BaseAdmin
{
    protected function listQueryBuilder() {
        $qb = parent::listQueryBuilder();
        
        return $qb;
    }

    protected function mapListFields(DataGridService $grid) {
        $grid->addField('name', 'string', [
            'sortable' => false,
            'filterable' => false,
        ]);
    }

    protected function mapFormFields(FormBuilder $formBuilder) {
        $formBuilder->add('name');
    }
}

Create Service:

item_admin:
    class: AppBundle\Admin\ItemAdmin
    arguments: ['AppBundle\Entity\Item']
    tags:
        - { name: bbit.admin, label: 'items', icon: 'glyphicon glyphicon-apple' }

Config:

bbit_admin:
    route_prefix: admin       # optional
    disable_auth: false       # optional

Routing:

bbit_admin:
    resource: "@BBITAdminBundle/Resources/config/routing.yml"
    prefix:   /
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.
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
directorytree/privacy-filter-classifier
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
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi