Hello I am trying to return a page message if a query fails to execute in laravel. It seems like the characters are escaped and the ouput is instead of being bold the output is actually appears like this.
<strong>Failed!</strong> No Good
my code is
try {
$product->save();
} catch ( \Illuminate\Database\QueryException $e) {
// var_dump($e->errorInfo);
//$messageTest = "failed";
$messageTest = "<strong>Failed!</strong> No good";
$isSuccess = 0;
}
return view('admin.createProduct',compact('isSuccess','categories','messageTest'));
i call it with {{$messateTest}} in my view.
Any suggestions on the subject ?