samedi 26 mars 2016

message with redirection in laravel

I have application where I show list of all items from specified table. Then I have in this page link to create new record in database, where it redirect me to form page. After submit the form I want to redirect back to list of items with success message like f.e."Record was inserted". How to do it in laravel? I tried something like this , but this doesnt work:

Redirect::to("Homepage@list")->to('message', 'Record was inserted')

also I tried (but also it doesnt work):

Session::flash('message', 'Record was inserted')

and in blade:

Session::get('message')



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire