0

Been facing an issue all week and I know it's probably simple but can't seem to figure it out :(

whenever I use in my custom package

return redirect('redirectToRoute');

all I get is a white screen if I use

dd(redirect('redirectToRoute'));

I can see the status is a 302 works perfectly fine outside of my package within the app folder but not inside my custom package what am I doing wrong?

CodeWithCoffee
  • 1,896
  • 2
  • 14
  • 36

1 Answers1

0

I just got the solution. You have to add ->send()

like

return redirect()->to(route('something'))->send(); 

it works

Apit John Ismail
  • 2,047
  • 20
  • 19