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

Crudit Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Crudit supports Symfony's Workflow component.

Usage

To enable workflows for a field, you need to set the type :

$status = Field::new("status", WorkflowField::class);

And it's done !
Note that "workflow" also works.

Roles

The workflows transitions have roles on them. The role is generated from this pattern : ROLE_<CRUDNAME>_WF_<transition>

Example : ROLE_USER_WF_TO_BANNED

Hyphens - are replaced by underscores _

Design

  • crudit-wf-dropdown is added on the div that contains the status and the dropdown
  • crudit-wf-badge is added on the status
  • crudit-wf-state-<status> is added on the status
  • crudit-wf-transition-<transition> is added on the transitions

Filter

The WorkflowFilterType is available in Crudit.
You need to pass the workflow of your choice to the filter, like this :

public function __construct(WorkflowInterface $commandStateMachine)
{
    // you may also use the Registry instead of injecting a WorkflowInterface
}

public function getFilters(): array
{
    return [
        WorkflowFilterType::new("state", $this->commandStateMachine),
    ];
 }
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