Skip to content

Commit

Permalink
Fixed meet save model
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Apr 6, 2024
1 parent f24d9e5 commit 21a1268
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/Http/Controllers/MeetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,10 @@ public function update(Request $request, Meet $meet)
'meet.online' => 'Онлайн',
]);

$meet->fill(array_merge($request->get('meet'), [
'online' => $request->boolean('meet.online'),
'user_id' => $request->user()->id,

]))
->save();
$meet->fill($request->get('meet'));

$request->user()->meets()->save($meet);

if ($meet->approved) {
Toast::success('Изменения успешно сохранены.')->disableAutoHide();
Expand Down

0 comments on commit 21a1268

Please sign in to comment.