1$user = User::create([
2 'username' => $data['username'] . ' ' . $data['username2'],
3 'mail' => $data['mail'],
4 'password' => bcrypt($data['password']),
5]);
6
7$userInfo = UserInformation::create([
8 'user_id' => $user->id,
9 'current_food' => $food,
10 'current_level' => $level,
11]);
12
1$user = User::create([
2 'username' => $data['username'] . ' ' . $data['username2'],
3 'mail' => $data['mail'],
4 'password' => bcrypt($data['password']),
5]);
6
7$userInfo = UserInformation::create([
8 'user_id' => $user->id,
9 'current_food' => $food,
10 'current_level' => $level,
11]);