Weave 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

Livewire Tweak Laravel Package

emkcloud/livewire-tweak

View on GitHub
Deep Wiki
Context7

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.

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.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels