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

Multi Domain Bundle Laravel Package

appventus/multi-domain-bundle

View on GitHub
Deep Wiki
Context7

MultiDomainBundle

This bundle provide multiple domain behavior for Symfony2 applications.

Installation

add

{
    "require": {
        "appventus/multi-domain-bundle": "dev-master",
    }
}

in your composer.json or composer require appventus/multi-domain-bundle

register the bundle adding it to your bundles.php file

return [
	[...]
	AppVentus\MultiDomainBundle\AvMultiDomainBundle::class => ['all' => true],
];

and add the DomainTrait to all your domain managed entities:

/**
* Page
*
* @ORM\Table()
* @ORM\Entity
*/
class Page
{
    use \AppVentus\MultiDomainBundle\Traits\DomainTrait;
    
    [...]
}

Annnnnnd, it's done !

Your Page entity will now be available only if his domain is the same as the request domain.

Have fun !

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