本文整理匯總了PHP中Illuminate\Routing\Redirector::action方法的典型用法代碼示例。如果您正苦於以下問題:PHP Redirector::action方法的具體用法?PHP Redirector::action怎麽用?PHP Redirector::action使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Illuminate\Routing\Redirector
的用法示例。
在下文中一共展示了Redirector::action方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: postFork
public function postFork($hash)
{
$parent = $this->repository->getByHash($hash);
$command = new Commands\CreateForkCommand($this->request->get('code'), $this->auth->user(), $parent);
$fork = $this->bus->execute($command);
return $this->redirector->action('BinController@getShow', [$fork->hash]);
}
示例2: update
/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id, Personne $Personne, Request $request, Redirector $redirect)
{
// return var_dump(Input::all());
// return 'update de la fiche '.$id;
$Personne->update($id, $request);
// return $redirect->back();
return $redirect->action('PersonneController@index');
}
示例3: action
/**
* Create a new redirect response to a controller action.
*
* @param string $action
* @param array $parameters
* @param int $status
* @param array $headers
* @return \Illuminate\Http\RedirectResponse
* @static
*/
public static function action($action, $parameters = array(), $status = 302, $headers = array())
{
return \Illuminate\Routing\Redirector::action($action, $parameters, $status, $headers);
}
示例4: redirectToAction
/**
* Create a new redirect response to a controller action.
*
* @param string $action
* @param array $parameters
* @param int $status
* @param array $headers
* @return \Symfony\Component\HttpFoundation\Response
*/
public function redirectToAction($action, $parameters = array(), $status = 302, $headers = array())
{
return $this->redirector->action($action, $parameters, $status, $headers);
}