#redirect after creating entity

5 messages · Page 1 of 1 (latest)

ionic rampart
#

I've put a afterCreate() into my CreateDog.php file.

I can confirm it does call that hook

it isn't honouring my redirect, and just redirecting to the default location

i've tried

redirect()->to(..)

and

return redirect->route(....)

Why is it not working? what's the correct way to take over the redirect flow?

twilit echoBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

ionic rampart
#

got it - thanks - the pages I found were showing older methods. and chatgpt doesn't know about v1 to v3

Will give it a spin, thanks @acoustic sun

ionic rampart
#

@acoustic sun works well, thanks