R
R
Roman2019-11-25 19:01:36
Laravel
Roman, 2019-11-25 19:01:36

Laravel 6, how to implement flash message during redirect?

In version 6 of Laravel, basic authorization is connected using After any action (Identification, registration, exit), a redirect occurs. It is required to add a Flash message after these steps. Implemented it, directly in But after all so it is not correct to do? I understand that with any update of laravel, everything can be overwritten and will no longer work? Then how to properly configure the output of Flash messages?
composer require laravel/ui --dev
Illuminate\Foundation\Auth\AuthenticatesUsers

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Northern Lights, 2019-11-25
@gagablik

Implemented this, directly in
you must not change ANYTHING in the vendor folder
It is required to add a Flash message after these steps.
Isn't there any examples of messages in Laravel out of the box? in any action at the end
return redirect()->route('you.rout')
            ->withFlashSuccess('ok');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question