Support the ongoing development of Laravel.io →
Authentication Views Forms
Last updated 2 years ago.
0
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()).

0

Sign in to participate in this thread!

Eventy

Your banner here too?

lycans28 lycans28 Joined 24 May 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.