Ad

How Display Redirect Variables?

- 1 answer

I have used redirect

return Redirect::to('/lk/payment_status')->with('message', 'Платеж успешно завершен’);

How display message variable message on /lk/payment_status page?

Ad

Answer

it seems you want to show some flash message after redirecting from page

if (Session::has('message')) {
    $value = Session::get('message');
}

now you can use $value and show it inside your page.

you can use this to get session flash message or even you can use Flash api

Flash::sucess('some message');
// now do redirection

inside your page you can use flash tag

{% flash %}
    <div class="alert alert-{{ type }}">
        {{ message }}
    </div>
{% endflash %}
Ad
source: stackoverflow.com
Ad