lundi 11 janvier 2016

return back() in Laravel without session params

I have this code in a project with Laravel 5:

return back()->with('msg_ok','successfully sent');

The param msg_ok is pushed in Session, but I´m not want use session params, I want pass the msg_ok parameter as variable.

For example I want print this en my blade file:

{{ $msg_ok }}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire