php - laravel route points to the right view but doesn't change the link in the address bar -


i have situation:

route::get('/page/view1,'somecontroller@showform'); route::post('/page/view1,'somecontroller@store'); 

in showform method:

return view(’/page/view1’); 

in view1.blade.php there form sends data somecontroller@store. icluded {!!form::open([’url’=>’/page/view1’, ’method’=>’post’])!!} although it’s nout necessay because default method ’post’

in somecontroller@store there condition:

if (condition) return view(’page/view2’); 

the condition met , see view2 on screen. however, in address bar see /page/view1

am missing ?(i'm quite new laravel)

you have 1 adress (page/view1) 2 ways enter link. can go (and see view page/view1) or can go post (and se view page/view2) adress same :)

it's 2 doors - on left room1 , on right room2 labels on doors same, simple enter here. hope helps ;)


Comments