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

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.
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament