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

Crud Bundle Laravel Package

araise/crud-bundle

View on GitHub
Deep Wiki
Context7

DefinitionBlock

This Block is used to link directly to another definition. Imaging you are creating a booking system. With this Block you will be able to edit the person who is booking the appointment directly in you booking without defining code twice.

Example

In the BookingDefinition we add a block referencing to the PersonDefinition. Of this definition we add the base block. If you wish you can edit this block in the provided callback function.

$builder
    ->addBlock('person', DefinitionBlock::class, [
        DefinitionBlock::OPT_CONFIGURE => function (Block $block) {
            // do some special configuration just for this subpage
        },
        DefinitionBlock::OPT_DEFINITION => PersonDefinition::class,
        DefinitionBlock::OPT_BLOCK => 'base',
        DefinitionBlock::OPT_ACCESSOR_PATH => 'patient',
        Block::OPT_VISIBILITY => [Page::SHOW, Page::EDIT],
    ])
;

Options

[php-doc-parser(araise-dev/CrudBundle:src/Block/DefinitionBlock.php:public const OPT_)]

Extended Options from Block

[php-doc-parser(araise-dev/CrudBundle:src/Block/Block.php:public const OPT_)]

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