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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware