Identify and list which users viewed an Laravel post

Asked

Viewed 80 times

0

Good afternoon, for study purposes, I am creating a communication system, where users register communiqués on a timeline, but I came across the following question, How would I show which users viewed this communiqué? Communications are sent to departments, or specific users, or to all users.

inserir a descrição da imagem aqui

  • If the user needs to be logged in to access the resource. you can simply record the user by accessing directly from the Controller. When it opens the page will generate a log of your access.

  • However, if you consider that a resource has been read only after some time has passed. Create an endpoint in your project to record the reading of the X resource by user Y. And control by javascript, if the user stays longer than determined on the page, vc saves by endpoint which user has read which resource.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.