New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

emkcloud/livewire-tweak

Tweaks and overrides for Livewire packages
1,333 4
Install
composer require emkcloud/livewire-tweak
Latest Version:1.7.0
Laravel:12 · 13
License:MIT
Last Updated:Mar 25, 2026
Links: GitHub  ·  Packagist
Maintainer: emkcloud

Livewire Tweak

Custom tweaks for Livewire and Flux

Blade directives, script output, and internal behavior have been adjusted. Custom prefixes were added to the default assets to ensure proper use in load-balanced environments.

Why this package exists

I built this package based on my experience working with clients who use firewalls and traffic load balancers that rely on custom URL prefixes such as /admin, /backend, /customers, etc.

In these environments, using popular Laravel packages like Nova, Livewire, or others can be problematic, because they often rely on absolute paths for assets and internal API calls.

Features

Requirements

  • Laravel ^12|^13
  • Livewire ^3.7|^4.2
  • Livewire Flux ^2.1 (optional)
  • Livewire Flux PRO ^2.1 (optional)

Installation

composer require emkcloud/livewire-tweak

Configuration

The configuration file is optional. You can simply define the variables directly in your .env file. However, if you need to customize the options, you can publish the configuration file:

php artisan vendor:publish --tag=livewire-tweak:config

All options in the package have default values, so you only need to define the ones you want to customize in your configuration file.

LIVEWIRE_TWEAK_CORE_PREFIX_ENABLE=false
LIVEWIRE_TWEAK_CORE_PREFIX_GROUPS=""
LIVEWIRE_TWEAK_CORE_PREFIX_ASSETS="livewire"
LIVEWIRE_TWEAK_CORE_PREFIX_ROUTES="livewire"
LIVEWIRE_TWEAK_CORE_PREFIX_DOMAIN=true
LIVEWIRE_TWEAK_CORE_MIDDLEWARE_ENABLE=false
LIVEWIRE_TWEAK_CORE_MIDDLEWARE_ASSIGN=""
LIVEWIRE_TWEAK_CORE_MIDDLEWARE_ASSETS=false
LIVEWIRE_TWEAK_CORE_MIDDLEWARE_ROUTES=false
LIVEWIRE_TWEAK_CORE_MIDDLEWARE_REMOVE=false

Environment

To view all available variables and their meanings, refer to the following file:

Environment variables

License

The MIT License (MIT). Please see the package License file for more information.

Related Packages

tobiasnagel/flux-breadcrumbs

Route-driven breadcrumbs for Laravel applications rendered with Flux UI.

40 0
clarkeash/turbine

A livewire flux starter kit

35 5
livewire/flux

The official UI component library for Livewire.

13,614,959 979
joshcirre/tweakflux

Deep theming for Flux UI. Override Tailwind v4 CSS custom properties to transfor...

23,131 119
wirecharts/wirecharts

Flux-style chart components for Laravel Livewire 4. 30+ chart types in one elega...

173 0

Version History

Version Released Laravel License
1.7.0 ^12.0|^13.0 MIT
1.6.0 ^12.0|^13.0 MIT
1.5.1 ^12.0 MIT
1.5.0 ^12.0 MIT
1.4.3 ^12.0 MIT