MacsiDigital / laravel-zoom

Laravel Zoom Package
MIT License
261 stars 135 forks source link

Getting 'Class name must be a valid object or a string' on saving user settings #72

Closed goddas closed 3 years ago

goddas commented 3 years ago

Hi, thanks for this awesome package! I'm getting an error trying to save user settings, any help appreciated!

Here is what I'm doing:

    $settings = \MacsiDigital\Zoom\Facades\Zoom::user()->find('myemail@here')->settings;
    (dd here gets a settings object successfully)

    $settings->inMeeting->remote_control = false;
    $settings->inMeeting->feedback = false;
    $settings->inMeeting->file_transfer = false;

    $settings->emailNotification->jbh_reminder = false;
    $settings->emailNotification->cancel_meeting_reminder = false;
    $settings->emailNotification->alternative_host_reminder = false;
    $settings->emailNotification->schedule_for_reminder = false;

    $settings->recording->local_recording = false;
    $settings->recording->cloud_recording = false;
    $settings->recording->record_audio_file = false;

    (dd here I see the settings object with the relationships filled accordingly. )

    $settings->save();

On the save() laravel throws Error Class name must be a valid object or a string

colinhall17 commented 3 years ago

HI @goddas

Thanks for reaching out.

The issue was a studly named variable should have been snaked case. Now fixed, let me know if you have any further issues.