return view('users.index')->with([
'message' => 'Thanks for signing up! Please check your email']);
This line is inside of a closure (so inside of a function), the return statement therefore would return the function. But that function is not your controller method, so the controller method (postCreateuser) doesn't return the necessary response object (the one that you create with view()).
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community