Blade echoing returning 1

Posted 1 month ago by luismldias

I am having an issue with a project.

In a nutshell, in a controller i am sharing a variable like this:

 view()->share('body_class',  'home');

and in the view when echoing the value using

{{ $body_class }}

The value that is being echoed is "1"

Has anyone had this issue?

Laravel 5.8

Thanks in advance,

Luis Dias

Please sign in or create an account to participate in this conversation.