O
O
ObehanProger2020-01-29 12:04:18
Laravel
ObehanProger, 2020-01-29 12:04:18

How to insert html tags in session response message in Laravel?

I'm trying to embed a link in a response message after user registration, but for some reason html tags are taken literally

$request->session()->flash('success_registration', "На ваш email '<a>'".$request->email."'</a>'выслано письмо с подтверждением регистрации");

issues
На ваш email '<a>'[email protected]'</a>'выслано письмо с подтверждением регистрации


How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Lamzin, 2020-01-29
@ObehanProger

In the template {!! $name !!} will output based on tags.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question