Why your photos not deleted when you delete a user in Laravel
Ok so you have a relationship mentioned in your eloquent user model to link the photo model relationship. So in your user model class you might have something like below to define the relationship. In your Photo class you might have put some code for deleting event to delete the photo files. Ok so now you can define what to do when the user is getting deleted. Here’s the catch....