php - How can I send data from one page to another using Laravel? -


so i'm using laravel 5.1 , i'm stuck in weird situation.

i have 2 models seasonand tournament , lets url add season model ..../seasons/add , view season ..../seasons/(id)... standard stuff right?

but want add tournament link ..../seasons/1 , click link takes me ..../tournaments/add... how can send season model page without submitting form hidden input?

currently have setup ..../seasons/1/tournaments/add using blade generate links. method doesn't feel right....

thanks.

how can send data 1 page using laravel?: suggest controller. take @ redirecting flashed session data, might come in handy.

from flash data documentation: "[...] available during subsequent http request, , deleted [...]"

you can send model, static values or whatever want using ->with:

redirect('route')->with('key', 'value'); 

Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -