php - laravel how to route to another function in the same controller -



php - laravel how to route to another function in the same controller -

i have controller registering, when user register route him profile page.

in user controller have these functions:

save show($id)

when registering, user fires save function. question how route him show function id ?

i create view:make() don't want route him straight view first want route him show function stuff , in show function view.make

you can utilize redirect functions

if using named routes:

return redirect::route('profile', array($id));

if not:

return redirect::to('user/show/' . $id);

php laravel laravel-4

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -