Search code examples
phplaravellaravel-4laravel-3

Passing internal parameter to controller functions with Redirect


in controller i have getEdit function and i want to pass parameter from this controller functions with Redirect::route.

for example

this functions get parameter normally:

public function getEdit( $entryExitid )
{

}

and with this function i want to pass parameter for that

public function postUpdate()
{
        return Redirect::route('entryAndExit.edit','10')
            ->withErrors( Lang::get('message.exitTimeBiggerThanEntryTime') )
            ->withInput();
}

Solution

  •  return Redirect::route('entryAndExit.edit',array('entryExitid' => $id))