diff --git a/src/BackupHandlers/Database/Databases/MySQLDatabase.php b/src/BackupHandlers/Database/Databases/MySQLDatabase.php index c6ad75e2..3de313fe 100644 --- a/src/BackupHandlers/Database/Databases/MySQLDatabase.php +++ b/src/BackupHandlers/Database/Databases/MySQLDatabase.php @@ -85,7 +85,11 @@ public function getFileExtension() */ protected function getDumpCommandPath() { - return config('laravel-backup.mysql.dump_command_path'); + if($path = config('laravel-backup.mysql.dump_command_path')) { + $path = str_finish($path, '/'); + } + + return $path; } /** diff --git a/src/BackupHandlers/Database/Databases/PgSQLDatabase.php b/src/BackupHandlers/Database/Databases/PgSQLDatabase.php index be4389c4..052d0c95 100644 --- a/src/BackupHandlers/Database/Databases/PgSQLDatabase.php +++ b/src/BackupHandlers/Database/Databases/PgSQLDatabase.php @@ -77,7 +77,11 @@ public function getFileExtension() */ protected function getDumpCommandPath() { - return config('laravel-backup.pgsql.dump_command_path'); + if($path = config('laravel-backup.pgsql.dump_command_path')) { + $path = str_finish($path, '/'); + } + + return $path; } /**