Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function show(Post $post)
- {
- $notification_for_user = auth()->user()->unreadNotifications()->where("data['post_id']", $post->id)->first()->update(['read_at' => now()]);
- return view('post.show', compact('post'));
- }
- {"post_id":8,"title":"Example Post...}
Add Comment
Please, Sign In to add comment