Updated backup paths for config variables in laravel-backups 3.7.0
This commit is contained in:
parent
1acfd525e8
commit
73327d31e3
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue