Welcome Guest, Not a member yet? Register   Sign In
Using $this->request on __construct
#5

Have you used CI3?

In short, you cannot use redirect in the constructor in CI4.

PHP Code:
        return redirect()->to('employees')
            ->with('feedback', json_encode($alerts))
            ->withInput(); 
Reply


Messages In This Thread
Using $this->request on __construct - by Worked - 04-19-2023, 10:09 AM
RE: Using $this->request on __construct - by kenjis - 04-20-2023, 06:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB