I am trying to pass data to a laravel blade and get that displayed. Evidently I am missing something very basic. If I use laravel format {{ $test_message }}, it is not displaying the value. If I use <?php echo $test_message ; ?>. It is working. Code from my controller -
$data = ['message' => 'This is a test!'];
return view('test')->with([ 'test_message' => $data['message'] ]);
View
<html lang="en-US">
<head>
<meta charset="utf-8">
</head>
<body>
<p> <?php echo $test_message ; ?> </p>
<p> {{ $test_message }} </p>
</body>
</html>
In the output, I have "This is a test! " for the php echo portion and {{$test_message}} for the next line.