I'm learning Laravel and I want to insert it into a table, and when I insert it, it shows a message in the view that the record has been inserted.
I have tried it many times with flash sessions and there is no human way to show the message.
I am using restful controllers, and in the store method it is where I try to redirect to the view, as I say I have tried with the method redirect :: to in this way
Redirect::to('raulpalaciox/')->with('message', 'enviado');
but he does not show me anything.
I have tried returning a view
return view('raulPalacioview.usuario.index',compact('mensajex'));
but being restful drivers it takes me to a route that is not correct, since the create method and the store method share the same route (I do not know if this can be changed somewhere) finally I tried with
Redirect::route('raulPalacio')
and
Redirect::route('raulPalacio',array('mensaje'=>'enviado')
and in both cases it gives me route not defined. So I wonder if there is any way to send an array and redirect at the same time using restful drivers and that it works.