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
Could you please describe why we should do echo $blade->make('homepage', ['name' => 'John Doe']);
instead of doing return $blade->make('homepage', ['name' => 'John Doe']);?
Thanks
The text was updated successfully, but these errors were encountered:
@mahshad I think it would completely depend upon the context. If you are ready to output to the page, then echo it. If you are being called from within some function that expects HTML, then return what it wants. You'll just have to look deeper into whatever framework you are using.
Hi,
Could you please describe why we should do
echo $blade->make('homepage', ['name' => 'John Doe']);
instead of doing
return $blade->make('homepage', ['name' => 'John Doe']);
?Thanks
The text was updated successfully, but these errors were encountered: