moukbel
219
7
Laravel

Displaying message after successful registration

Posted 2 months ago by moukbel

in RegisterController.phpI have used

protected function redirectTo()
    {
       
         return redirect('/users')->with('success','User has Added');   

    }

and I'm getting this message

ErrorException
Header may not contain more than a single header, new line detected

when i use return ' users/' it work fine

Please sign in or create an account to participate in this conversation.