diff --git a/code/app/Http/Controllers/Auth/RegisterController.php b/code/app/Http/Controllers/Auth/RegisterController.php index 8f7b5a04..b09dd808 100644 --- a/code/app/Http/Controllers/Auth/RegisterController.php +++ b/code/app/Http/Controllers/Auth/RegisterController.php @@ -116,6 +116,8 @@ protected function validator(array $data) */ protected function create(array $data) { + $gas = Gas::find($data['gas_id']); + $user = new User(); $user->gas_id = $data['gas_id']; $user->member_since = date('Y-m-d', time());