How to let user bread onle the records created by him

Posted In Voyager
  • mithu-quayium 1 year ago
    Voyager is a nice addition to laravel package. Excellent one. But recently I have wonder on how to do a thing on voyager.
    The thing is , I want to let user do bread ONLY on the records created by him, records of other users won't be accessible to him
    OR,
    he can see all the records but can do add-edit-delete ONLY on his records.
    How can we achive this in voyager.
    The default permissions are working on all records, those does not filter user specific records.

    Voyager is a nice addition to laravel package. Excellent one. But recently I have wonder on how to do a thing on voyager. The thing is , I want to let user do bread ONLY on the records created by him, records of other users won't be accessible to him OR, he can see all the records but can do add-edit-delete ONLY on his records. How can we achive this in voyager. The default permissions are working on all records, those does not filter user specific records.

  • mark 1 year ago
    Currently that is not possible any easy way. We are open to pull requests.
    The only way to do this at the moment is make a custom BREAD controller for that given table.

    Currently that is not possible any easy way. We are open to pull requests. The only way to do this at the moment is make a custom BREAD controller for that given table.

  • darek-pan 1 year ago
    Hi
    
    I am newbie in laravel and voyager topic. I did custom controller but have another problem :( When I create new form by user (no admin) in voyager dashbord I can choose user Id or I can hidde user id in the field ,but cant do that user ID is automatic connect to the user which fills the field. 
    
    Any tips how to solve that ?

    Hi

    I am newbie in laravel and voyager topic. I did custom controller but have another problem :( When I create new form by user (no admin) in voyager dashbord I can choose user Id or I can hidde user id in the field ,but cant do that user ID is automatic connect to the user which fills the field.

    Any tips how to solve that ?

  • mark 1 year ago
    Can you explain in futher details, maybe with screenshots?

    Can you explain in futher details, maybe with screenshots?

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
tnylea
Cheers Friend!

I'm Tony, the creator of this site. I'm trying to increase my twitter following. Want to follow me?

Follow @tnylea If not, no worries :)