Skip to content

Upgraded Livewire to v4#18494

Merged
snipe merged 16 commits intogrokability:developfrom
marcusmoore:livewire4
Mar 6, 2026
Merged

Upgraded Livewire to v4#18494
snipe merged 16 commits intogrokability:developfrom
marcusmoore:livewire4

Conversation

@marcusmoore
Copy link
Copy Markdown
Collaborator

@marcusmoore marcusmoore commented Jan 28, 2026

This PR upgrades to Livewire v4 (v4.1.0 specifically).

A couple notes:

  • snipeit.js has been updated so assets need to be re-built.
  • We'll need to run php artisan optimize:clear to clear out the cache.
  • I set csp_safe to false because we are using some global references. Search for csp_safe on this page for more info.
  • I snuck in a bug fix in the oauth clients component that wasn't allowing clients to be updated.
  • The new default for php artisan make:livewire is a single file component but I set the config to use class-based like we
    are currently using. I'd like to explore multiple file components though.

Upgrade guide for reference.


I expect a composer.lock merge conflict between this and #18492 and will update after one is merged.

@marcusmoore marcusmoore requested a review from snipe as a code owner January 28, 2026 21:27
@snipe snipe added the Merge Ready - on Hold 🤚 Stuff that is fully ready to merge, but on-hold for logistics reasons label Feb 12, 2026
@snipe
Copy link
Copy Markdown
Member

snipe commented Feb 25, 2026

Can you just handle that conflict for me?

@marcusmoore
Copy link
Copy Markdown
Collaborator Author

Conflicts resolved.

@snipe this needs a npm run dev to get the new assets included. Should I run that and include it in the PR?

public/js/dist/all.js
public/js/dist/all.js.map
public/mix-manifest.json

@snipe snipe merged commit 13ce17f into grokability:develop Mar 6, 2026
6 of 7 checks passed
@snipe
Copy link
Copy Markdown
Member

snipe commented Mar 6, 2026

✨snipe@MacBookPro✨ snipe-it  (develop) $ php artisan optimize:clear

   InvalidArgumentException

  Attribute [livewire] does not exist.

  at vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:117
    113▕      */
    114▕     public function attribute($key, $value)
    115▕     {
    116▕         if (! in_array($key, $this->allowedAttributes)) {
  ➜ 117▕             throw new InvalidArgumentException("Attribute [{$key}] does not exist.");
    118▕         }
    119▕
    120▕         if ($key === 'middleware') {
    121▕             foreach ($value as $index => $middleware) {

      +2 vendor frames

  3   routes/web.php:346
      Illuminate\Support\Facades\Facade::__callStatic("livewire")
      +3 vendor frames

  7   routes/web.php:337
      Illuminate\Support\Facades\Facade::__callStatic("group")

@marcusmoore
Copy link
Copy Markdown
Collaborator Author

I think you might have missed composer install to get to pull down the latest before running optimize:clear.

@snipe
Copy link
Copy Markdown
Member

snipe commented Mar 6, 2026

GO TO BED. 😂

@marcusmoore marcusmoore deleted the livewire4 branch March 9, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merge Ready - on Hold 🤚 Stuff that is fully ready to merge, but on-hold for logistics reasons

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants