S
S
Skyper2021-08-11 12:13:10
Laravel
Skyper, 2021-08-11 12:13:10

How to fetch and insert and concatenate fetch data in laravel?

I created alerts.blade.php and links.blade.php templates Alerts
structure:

<div class="alert alert-success">

</div>

From links I send data and get the response I need the link - there are no problems here
In alerts I get data (html code) and in general I get it like normal 611393908c9fa916679656.png
After I got it I need to combine the response from links and the response from alerts and insert into the links.blade.php code structure - I have no idea how to do this at all ...
And there is another problem ... when I just try to insert a response, let's say from the same alerts, then all the characters of the html code are converted and I get this thing -61139493bbcaa564659730.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
inFureal, 2021-08-19
@inFureal

Create a stack in the master template @stack('scripts'), accept the ID in the required template and do it there@push('scripts') @endpush

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question