PHPackages                             marketdragon/livewire-extra - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. marketdragon/livewire-extra

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

marketdragon/livewire-extra
===========================

Route based livewire component fix for package development

v0.0.1(3y ago)03MITPHPPHP ^7.3|^8.0.2

Since May 12Pushed 2y agoCompare

[ Source](https://github.com/marketdragonph/livewire-extra)[ Packagist](https://packagist.org/packages/marketdragon/livewire-extra)[ RSS](/packages/marketdragon-livewire-extra/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Livewire Extra
--------------

[](#livewire-extra)

A re-written LivewireComponentsFinder version to make Route based Livewire component to work on packages.

This add package components in the livewire cache to avoid page expired message in the browser.

### Installation

[](#installation)

`composer require marketdragon/livewire-extra`

Add a livewire component in your `/src/Http/Livewire`.

Add these to your .env

```
MD_PACKAGE_PARENT_NAME=
MD_PACKAGE_VENDOR_DIR=

```

In your livewire component render method.

```
    public function render()
    {
        return view('md::livewire.admin');
    }

```

Add this to your preferred service provider

```
    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        $this->loadViewsFrom(__DIR__. '/../resources/views', 'md');
    }

```

`php artisan marketdragon:livewire_discover`

### Customise the configuration

[](#customise-the-configuration)

`php artisan vendor:publish --provider="MarketDragon\LivewireExtra\LivewireExtraServiceProvider"`

```
