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

Bundles Cms Laravel Package

kunstmaan/bundles-cms

Kunstmaan CMS is a full-featured, multilingual CMS built on the Symfony full-stack framework. It offers page and form assembly, versioning, workflow, translation tools, and media management, plus integrations with community bundles.

View on GitHub
Deep Wiki
Context7

Adding a custom controller to a page

Before CMS version 3.1 we used a the service() method in a specific entity to write any custom controller logic. This was a poor solution. We decided to refactor this.

Creating a full controller

Modify the entity

  • Add the SlugActionInterface to the entity.
  • Add the getControllerAction method
class HomePage implements SlugActionInterface
{
	...
	
	public function getControllerAction()
	{
		return AppBundle:HomePageController:FooMethod;
		
		// or return a service.
		
		return appbundle.controller.home:fooAction;
	}
}

Create or modify the controller

namespace App\Bundle\Controller;

class HomePageController extends Controller
{
	...

    /**
     * Return a new Response or just an array with the data for your pagetemplate.
     */
    public function fooAction(Request $request)
    {
        ...
    }
}
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.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
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
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime