V
V
Vladimir Kokhan2019-04-18 14:37:55
Laravel
Vladimir Kokhan, 2019-04-18 14:37:55

How to put form code in Laravel DB?

Good day everyone.
There is a form code

<form action="{{ route('email') }}" method="post" class="contact-form-box">
                    @csrf
                    @method('post')
                    .....
                    ......
                    ......
                </form>

It is placed in the database. But when I receive it and display it in the template, the security code is visible on the page - @csrf and the method code - @method('post')
Can I somehow fix this? Is it even possible to place forms in a database? If so, what is the right way to avast in the template?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2019-04-18
@tsklab

Can I somehow fix this?
No. The DBMS returns everything, up to the character that was written there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question