redirect question |
Hi,
Can someone tell me why this is redirecting to localhost rather than the domain it is being executed on Code: return redirect()->to('/admin/login');
its not work in construct
it should use filter PHP Code: <?php namespace Myth\Auth\Filters; function index(){ return redirect()->to('login') }
Enlightenment Is Freedom
(10-11-2021, 03:13 AM)paulkd Wrote: Hi, You sure you don’t have “localhost” in app.baseURL in your .env file?
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ (10-12-2021, 04:00 PM)includebeer Wrote:(10-11-2021, 03:13 AM)paulkd Wrote: Hi, Bingo! The setting was actually commented out. Uncommenting and changing to the correct domain resolved the issue. Thanks! |
Welcome Guest, Not a member yet? Register Sign In |