Answer the question
In order to leave comments, you need to log in
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
Implemented this, directly inyou 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 questionAsk a Question
731 491 924 answers to any question