Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislawfortonski committed Apr 21, 2021
1 parent a045c07 commit 2db7da2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Admin/PostsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public function update(PostStoreRequest $request, Post $post)
DB::beginTransaction();
try {
$data = $this->getValidatedData($request);
unset($data['author_id']);
$post->update($data);
$this->saveCategories($request, $post);

Expand Down

0 comments on commit 2db7da2

Please sign in to comment.