Skip to content

Commit

Permalink
Posts
Browse files Browse the repository at this point in the history
  • Loading branch information
vladstejeroiu committed Jan 3, 2021
1 parent 5b9dfb3 commit d6395ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function store()
// Set the user_id FK as the logged in user's id
$post->user_id = Auth::id();


// Save the post to the database
$post->save();

Expand Down

0 comments on commit d6395ed

Please sign in to comment.