I want to use a variable value into another one (both are in the same table as keys) and display in a blade layout the container variable value. Both variables are passed using the with method from the controller. Is that possible? Here a quick demo of what I'm loooking for :
# controller method
public function build()
{
return $this
->view('emails.registration_following')
->with( ['name' => 'Nick', 'text' => 'Hello '] ) # Here goes the thing
;
}
And the blade.php looks like :
<html>
<body>
<p> </p>
</body>
</html>
The expect output by me is Hello Nickbut I got Hello . I know that brackets here, are treated like String but how to circumvine that?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire