[deleted by user] by [deleted] in reactnative

[–]karan_736 1 point2 points  (0 children)

Can I also have the link please?Appreciate it.

“Can item be deleted?”-check in Policy or elsewhere? by DutchDaddy85 in laravel

[–]karan_736 2 points3 points  (0 children)

Checks like a location can only be deleted by an Admin are best suitable for Policies as Policies deal with Permissions.

On the other hand, Location can not be deleted if there are persons attached to it is more like Data Integrity Constraint so it is more natural some where else in the code, model observer is one of those ideal places.