public function restore($id) { $album = Album::withTrashed()->find($id); $photoRepository = \App::make('Repositories\\PhotoRepository'); $photoRepository->restoreFromAlbum($id); return $album->restore(); }
public function restore($id, PhotoRepository $photos, Filesystem $storage) { $album = Album::withTrashed()->find($id); $photos->restoreFromAlbum($id, $storage); return $album->restore(); }
public function delete(Entity\Album $album) { return Album::withTrashed()->where('id', $album->getId())->forceDelete(); }