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