Laravel 5.4 protected documents on user permission

Viewed 279

I have a Laravel project where users have roles with permissions(I'm using Zizaco/entrust) and the app is accessable just for registered user.

The application holds uploaded documents but this documents should not available for public view, on the other side this documents should be accessable in function of users permission.

My question: how to go in this case, how to protect documents in function of users permission?

1 Answers
Related