Illuminate\Routing\Redirector::action PHP Méthode

action() public méthode

Create a new redirect response to a controller action.
public action ( string $action, array $parameters = [], integer $status = 302, array $headers = [] ) : Illuminate\Http\RedirectResponse
$action string
$parameters array
$status integer
$headers array
Résultat Illuminate\Http\RedirectResponse
    public function action($action, $parameters = [], $status = 302, $headers = [])
    {
        $path = $this->generator->action($action, $parameters);
        return $this->to($path, $status, $headers);
    }

Usage Example

Exemple #1
0
 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]);
 }
All Usage Examples Of Illuminate\Routing\Redirector::action