protected function createSignup(array $data, $userId)
    {
        return Signup::create([
            'user_id' => $userId,
            'firstname' => $data['firstname'],
            'surname' => $data['surname'],
            'gender' => $data['gender'],
            'email' => $data['email'],
            'mobile_number' => $data['mobile_number'],
        ]);
    }
protected function createSignup(array $data, $userId)
    {
        return Signup::create([
            'user_id' => $userId,
            'firstname' => $data['firstname'],
            'surname' => $data['surname'],
            'gender' => $data['gender'],
            'email' => $data['email'],
            'mobile_number' => $data['mobile_number'],
        ]);
    }
protected function createSignup ( array $ data , $ userId ) { return Signup :: create ( [ 'user_id' => $ userId , 'firstname' => $ data [ 'firstname' ] , 'surname' => $ data [ 'surname' ] , 'gender' => $ data [ 'gender' ] , 'email' => $ data [ 'email' ] , 'mobile_number' => $ data [ 'mobile_number' ] , ] ) ; }
Create a new user profile after a valid registration.

@param  array  $data
@param  int    $userId
@return User
Create a new user profile after a valid registration .