Published 1 month ago by yougotnet
I have an application with many users; is there something built into Laravel already that ensures the record the user is deleting, actually belongs to the user?
Depends on what restrictions you want to have for your users :) If it is something really really simple, you could add a "role" column to your User table and make a middleware to check if the user is authorized to perform an action. Otherwise go for gates/policies. Or use both :)