I'm using laravel 5.1 for a simple app. Right now I have a simple front-end and back-end. If I add n...
I want to add the same club_id to the newly created user as the logged in user that is creating him...
I managed to solve it by adding use Input; at the top of AuthController and this code: if(I...
rberlin01 said: What's the route and method declaration look like? It's the standard one from auth...
rberlin01 said: Look for the input, if not there use the user's. if(isset($request->input('club...
rberlin01 said: Also, have you done an echo on Auth::user()->club_id to ensure that the logged i...
rberlin01 said: also, see your AuthController below return User::create([ 'name' => $d...
The Laravel portal for problem solving, knowledge sharing and community building.
The community