You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
On Laravel 12, Fatal error after installing php-flasher/flasher-laravel — foreach() argument must be of type array|object, bool given #52 #287
@KavanAhmadian Thanks for the version info! Interesting that 1.15 works for you - that's a helpful clue.
Could you create a quick GitHub repo that shows the issue? Just a basic setup where the error happens would be perfect. This would save me tons of time figuring out exactly what's breaking with Laravel 11.3
Hi,
I had the same error.
I fixed it removing the config/flasher.php file and could check what exactly caused the crash.
In my case, it was the 'flash_bag' that I just commented and it's now working.
Has the bug after migrating to laravel 12 and updating all packages.
The error was in the Flasher \ Prime \ Http \ RequestExtension : 45 in the foreach for aliases.
Edit : I had old version of config file, then I just regenerated the config and to completely fix I had to use the command to re publish the css/js in vendor.
Then just changed the css class .fl-main-container to .fl-wrapper in my code.
The exact part of config that was breaking the code was :
Activity
KavanAhmadian commentedon Apr 13, 2025
i have this error tooo ..
yoeunes commentedon Apr 13, 2025
Hello @dlopez525 and @KavanAhmadian,
Thank you for reporting this issue. To help me diagnose and fix this problem efficiently, could you please:
Thank you
KavanAhmadian commentedon Apr 13, 2025
@yoeunes
php => 8.2
laravel => 11.3
commaand => composer require php-flasher/flasher-laravel
but when i down grade to version 1.15 is worked ..
yoeunes commentedon Apr 13, 2025
@KavanAhmadian Thanks for the version info! Interesting that 1.15 works for you - that's a helpful clue.
Could you create a quick GitHub repo that shows the issue? Just a basic setup where the error happens would be perfect. This would save me tons of time figuring out exactly what's breaking with Laravel 11.3
dlopez525 commentedon Apr 13, 2025
@yoeunes
The error I get is when I upgrade from Laravel 11 to 12. Exactly in Laravel version 12.0.6, with PHP 8.3.19
yoeunes commentedon Apr 15, 2025
Hi @dlopez525 and @KavanAhmadian, thanks for the environment details!
could one of you please create a simple GitHub repository that reproduces the error?
Seeing it in action is the quickest way for me to diagnose and fix it for both Laravel 11 and 12. Thanks! 🙏
nonoodev commentedon Apr 23, 2025
Hi,
I had the same error.
I fixed it removing the config/flasher.php file and could check what exactly caused the crash.
In my case, it was the 'flash_bag' that I just commented and it's now working.
Has the bug after migrating to laravel 12 and updating all packages.
The error was in the Flasher \ Prime \ Http \ RequestExtension : 45 in the foreach for aliases.
Don't know if it can help.
Edit : I had old version of config file, then I just regenerated the config and to completely fix I had to use the command to re publish the css/js in vendor.
Then just changed the css class .fl-main-container to .fl-wrapper in my code.
The exact part of config that was breaking the code was :
That should now be :
abraaoribeiro28 commentedon May 16, 2025
Thank you for sharing, this worked for me.