Welcome Guest, Not a member yet? Register   Sign In
Flashdata clearing after redirect
#4

You can append "->withCookies()" to the end of your redirect.


PHP Code:
    public function deleteGroup()
    {

        $model = new \App\Models\GroupModel();

        $post $this->request->getPost();
        if ($post) {
            session()->setFlashdata('success''Grupo removido com sucesso');
        }
        return redirect()->to('groups')->withCookies();
    
Reply


Messages In This Thread
Flashdata clearing after redirect - by Thiaxl - 10-24-2022, 07:11 AM
RE: Flashdata clearing after redirect - by Thiaxl - 10-24-2022, 09:07 AM
RE: Flashdata clearing after redirect - by doitlikejustin - 10-24-2022, 11:20 AM
RE: Flashdata clearing after redirect - by kenjis - 10-24-2022, 02:30 PM
RE: Flashdata clearing after redirect - by HermyC - 10-24-2022, 07:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB