本文整理汇总了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);
}