R
R
romaaa322022-03-28 21:21:03
Laravel
romaaa32, 2022-03-28 21:21:03

Why don't flash messages always work?

Let's say we have this code:

return redirect()->route('home')->with('notification',  "Бла бла бла");


In the view, the output is:
@if(session('notification'))
    <div class="notification">
        {!! session('notification') !!}
    </div>
@endif


The same request, on the home PC the message is displayed every other time! (loading the page takes about a second)
Sometimes they are not displayed on the working PC! (page loading is almost instantaneous)

Because of what messages may not be displayed ??

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romaaa32, 2022-04-07
@romaaa32

1) The problem occurs only when using the Google Chrome browser
2) Namely, the wrong path to the site icon.
The correct path to the icon solves the problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question