Skip to content

View events not firing anymore since 9.36 #44650

@stayallive

Description

@stayallive
  • Laravel Version: 9.36.2 (same for 9.36.0 & 9.36.1)
  • PHP Version: 8.1.10

Description:

Listening to composing events no longer seems to work, probably related to: #44487.

$this->app['events']->listen('composing:*', ...);            // barryvdh/laravel-debugbar
$this->app['events']->listen("composing: {$viewName}", ...); // laracasts/utilities

Unsure if this was ever intended to work but this seems like a very breaking change since this always used to work and people are seemingly relying on it. It looks like an unintentional BC slipped in the 9.36 release.

Steps To Reproduce:

The easiest is to install barryvdh/laravel-debugbar (barryvdh/laravel-debugbar#1354, barryvdh/laravel-debugbar#1355) for example which will no longer show any views being rendered. This also breaks laracasts/utilities and of course any userland code using events directly to listen for composing: or other view related events not registered using View::composer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions