How to fix livewire Getting Str replaceFirst() error

How to fix livewire Getting Str replaceFirst() error

248

Newest version of livewire in laravel 8 will return following error after upgrading your laravel version

Too few arguments to function Illuminate\Support\Str::replaceFirst()

To fix this error type (copy/paste) following commands in your terminal

// publish livewire config file
php artisan livewire:publish --config

// cache configs (livewire included now)
php artisan config:cache

// or
php artisan optimize 

Easy right? slightly_smiling_face

- Last updated 2 years ago

Be the first to leave a comment.

You must login to leave a comment