public function restoreFromAlbum($albumId) { $albumPhotos = Photo::withTrashed()->where('album_id', $albumId)->get(); foreach ($albumPhotos as $photo) { $this->restore($photo->photo_id); } }
public function delete(Entity\Photo $photo) { return Photo::withTrashed()->where('id', $photo->getId())->forceDelete(); }