Support the ongoing development of Laravel.io →
posted 10 years ago
Requests

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??

Thanks in advance :)

Last updated 2 years ago.
0

Have you tried if(function_exists('redirect'))?

0

I have mate and it does exist :(

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.