Open zhi8617 opened 1 week ago
The solution I found for this is to specify "singleton" instead of "bind" in the class vendor\combindma\laravel-facebook-pixel\src\FacebookPixelServiceProvider.php. So: public function registeringPackage(): void { $this->app->singleton(MetaPixel::class, function () { return new MetaPixel(); }); } instead of: public function registeringPackage(): void { $this->app->bind(MetaPixel::class, function () { return new MetaPixel(); }); }
Then it works!
Thank .
What happened?
I expected the following to show up:
How to reproduce the bug
I set up MetaPixel as follows:
In testing, getEventLayer has data, but the view does not display any data.
I only see the head section being set up, but nothing is displayed in the body . I even set up the following in body.blade.php:
Then, the data appears.
Package Version
last
PHP Version
8.2
Laravel Version
11
Which operating systems does with happen with?
No response
Notes
No response