Share data from `CreateRecord::handleRecordCreation` to `getRedirectUrl`
I'm contacting the payment processor within
handleRecordCreation
to retrieve a redirect url. How can I pass that url to getRedirectUrl
so the user is automatically redirected to the payment page? π€
Alternatively if I contact the processor in afterCreate
is it possible to redirect the user from there?1 Reply
Solution
just call redirect()->to('Intended url here') within the afterCreate()