Not able to pass data to my view from controller.
My view is called "about.blade.php" from my controller I simply wrote
return view('pages.about')->with('fullname', "test");
My view is called "about.blade.php" from my controller I simply wrote return view
$first = 'B';
$last = "Z";
$full = $first " " . $last;
return view('pages.about')->with('fullname', $full);
I expected to see the word concatenated text B Z on the page where I wrote {{fullname}}
I get the following error
Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_PARSE) syntax error, unexpected '" "' (T_CONSTANT_ENCAPSED_STRING)