Closed price2b closed 7 years ago
the -> withSharelinks($sharelinks)
should create a variable called $sharelinks
with the contents of $sharelinks
. So just echo $sharelinks['gplus']
.
I'd actually change the sample to
return view('static.index', [
'sharelinks' => $sharelinks
]);
then $sharelinks['gplus']
should work as well.
excellent kevin. thank you so much!.
I used the example in the controller and is not giving me any error:
return view('static.index')->withSharelinks($sharelinks);
On the other hand I dont know the way I have to use the information in blade template. My idea is to pass the array:
, any help appreciated.