Updated backup paths for config variables in laravel-backups 3.7.0

This commit is contained in:
snipe 2016-05-12 17:16:10 -07:00
parent 1acfd525e8
commit 73327d31e3

View file

@ -416,7 +416,7 @@ class SettingsController extends Controller
public function getBackups() public function getBackups()
{ {
$path = storage_path().'/app/'.config('laravel-backup.destination.path'); $path = storage_path().'/app/'.config('laravel-backup.backup.name');
$files = array(); $files = array();
@ -475,7 +475,7 @@ class SettingsController extends Controller
public function downloadFile($filename = null) public function downloadFile($filename = null)
{ {
if (!config('app.lock_passwords')) { if (!config('app.lock_passwords')) {
$path = storage_path().'/app/'.config('laravel-backup.destination.path'); $path = storage_path().'/app/'.config('laravel-backup.backup.name');
$file = $path.'/'.$filename; $file = $path.'/'.$filename;
if (file_exists($file)) { if (file_exists($file)) {
return Response::download($file); return Response::download($file);
@ -504,7 +504,7 @@ class SettingsController extends Controller
if (!config('app.lock_passwords')) { if (!config('app.lock_passwords')) {
$path = storage_path().'/app/'.config('laravel-backup.destination.path'); $path = storage_path().'/app/'.config('laravel-backup.backup.name');
$file = $path.'/'.$filename; $file = $path.'/'.$filename;
if (file_exists($file)) { if (file_exists($file)) {
unlink($file); unlink($file);