ralphjsmit
Laravel Vapor gzip
Livewire injecting features comes after all the middleware because it listens to the RequestHandled event. If the response then already is gzipped or brotli'd, then it will not inject the assets and you get this empty page type of thing.
7 replies
Add maxlength to 255 chars on TextInput by default
What you likely need to do is to provide a closure to
maxLength()
and only in that closure call getInputMode()
.
You need to imagine that ::configureUsing()
is called immediately when someone does TextInput::make()
. So at that point, if you call getInputMode()
then the code in the configureUsing does not yet know what other methods are chained after it, so hence it doesn't work (what you also said).
The solution therefore would be to fetch the getInputMode()
at run-time, when the getMaxLength() function is actually being called:
7 replies