Redirecting

You may want to redirect from inside a Wire component to another page.

E.g: After submitting some data, perform all needed operations like saving an entity or sending an email you might want to redirect the user to a specific page.

To do this, two helper methods are available withing your Wire Component:

// Redirects to given route.
$this->redirectRoute('<front>');

// Redirects to given path.
$this->redirect('/completed');

 

********************************** ************************* ************************ **************** ****************** *********** ************** ************* ************ *************