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.
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