laravel-admin-extensions / backup Goto Github PK
View Code? Open in Web Editor NEWAn admin interface for managing backups
Home Page: http://laravel-admin.org/
License: MIT License
An admin interface for managing backups
Home Page: http://laravel-admin.org/
License: MIT License
@z-song 在直接点击下载备份超链接的时候,因为后台页面用了pjax所以不是正常的下载,前端直接将收到的压缩包给渲染了并且这个过程浏览器会很卡.最后变成了乱码.
如图所示:
我的解决方案是将下载的a标签加上 target="_blank"
, 在新的页面打开下载地址.
即修改 resources/views/index.blade.php
的第 122
行.
如下:
<a target="_blank" href="{{ route('backup-download', ['disk' => $backup[1], 'file' => $backup[0].'/'.$file]) }}"><i class="fa fa-download"></i></a>
emmm...希望作者尽快修复,因为我不想直接修改 composer 里的代码.
PS: 能提个建议么,我发现 laravel-admin-extensions 里的包都不支持自定义路由,如果对视图或者路由不满意貌似最快的方法是直接改包里的代码,但是这样好像并不优雅.emmm...所以真心希望作者提供自定义路由的功能.
最后还是感谢提供如此好用的laravel后台包 👍 😃
hi just want to know how to display output like your screenshoot
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for spatie/laravel-backup (locked at 6.0.3, required as ^6.0) -> satisfiable by spatie/laravel-backup[6.0.3].
- laravel-admin-ext/backup v1.0.1 requires spatie/laravel-backup ^5.0 -> satisfiable by spatie/laravel-backup[v5.x-dev].
- laravel-admin-ext/backup v1.0.2 requires spatie/laravel-backup ^5.0 -> satisfiable by spatie/laravel-backup[v5.x-dev].
- Conclusion: don't install spatie/laravel-backup v5.x-dev
- Can only install one of: encore/laravel-admin[1.5.x-dev, v1.6.9].
- Can only install one of: encore/laravel-admin[v1.6.9, 1.5.x-dev].
- Can only install one of: encore/laravel-admin[1.5.x-dev, v1.6.9].
- laravel-admin-ext/backup v1.0 requires encore/laravel-admin 1.5.* -> satisfiable by encore/laravel-admin[1.5.x-dev].
- Installation request for laravel-admin-ext/backup ^1.0 -> satisfiable by laravel-admin-ext/backup[v1.0, v1.0.1, v1.0.2].
- Installation request for encore/laravel-admin (locked at v1.6.9, required as ^1.6) -> satisfiable by encore/laravel-admin[v1.6.9].
Installation failed, reverting ./composer.json to its original content.
Any plan to update ? Thanks.
php7.1.3
laravel5.8
mysql5.6
the ajax request return 500 Internal Server Error when i click "backup" button.
When I click the Backup button,
I find a ajax request to backend,so I wait a moment,
this response a json as
{"status":false,"message":"Connection to smtp.mailtrap.io:2525 Timed Out"}
在Backup.php的41行中
Line 41 in 3ca98a2
extend
方法在registerRoutes
之后执行,会导致下面的代码无法正常获取路由配置
https://github.com/z-song/laravel-admin/blob/301d46dc1bd8d7a7da964f223f7b6f982ea51a1b/src/Extension.php#L421
该问题可能在别的扩展中也有
backup/resources/views/index.blade.php
Line 120 in e01275b
Just replace $backup[1] to $backup['disk']
这个备份完了怎么要发送一个邮件?
laravel-admin-ext/backup v1.1 requires spatie/laravel-backup 5.5.* -> no matching package found.
spatie/laravel-backup 最新是5.0
Hello.
Any plans to update dependencies to support the Laravel 5.6? For now, the composer.json
contains "laravel/framework": "5.5.*"
dependency.
encore/laravel-admin | ^1.7
laravel/framework | ^6.2
gives me error
Argument 1 passed to Spatie\Backup\Tasks\Monitor\BackupDestinationStatusFactory::createForMonitorConfig() must be of the type array, null given, called in C:\laragon\www\steklo-group\vendor\laravel-admin-ext\backup\src\Backup.php on line 15
{"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Argument 1 passed to Spatie\Backup\Tasks\Monitor\BackupDestinationStatusFactory::createForMonitorConfig() must be of the type array, null given, called in C:\laragon\www\steklo-group\vendor\laravel-admin-ext\backup\src\Backup.php on line 15 at C:\laragon\www\steklo-group\vendor\spatie\laravel-backup\src\Tasks\Monitor\BackupDestinationStatusFactory.php:11)
1.程序装在本机
2.mysql装在内网的其它机器上
出现两个问题
1.大致的提示是说swiftmailer这个包发送邮件失败,后来猜想是备份有邮件提示,但是没有找到配置邮件的地方,后来看到这个包是依赖spatie/laravel-backup,它下面有配置文件:
php artisan vendor:publish
把backup.php文件发布到config目录下,改下里面的 mail to 项目就好了
2.上面问题解决之后又出现另外一个问题
Backup failed because The dump process failed with exitcode 127 : Command not found : sh: mysqldump: command not found
我尝试着把mysqldump把软链到/usr/local/bin 然后再执行,还是报同样的错误。
我的是Mac电脑,不知道该如何解决了
**Laravel-admin version: ** 1.8.14
**Laravel Framework: ** 8.80.0
gives me error:
TypeError In BackupDestinationStatusFactory.php line 11 :
Argument 1 passed to Spatie\Backup\Tasks\Monitor\BackupDestinationStatusFactory::createForMonitorConfig() must be of the type array, null given, called in D:\laragon\www\ERP\vendor\laravel-admin-ext\backup\src\Backup.php on line 15
Log Error:
Argument 1 passed to Spatie\Backup\Tasks\Monitor\BackupDestinationStatusFactory::createForMonitorConfig() must be of the type array, null given, called in D:\laragon\www\ERP\vendor\laravel-admin-ext\backup\src\Backup.php on line 15 {"userId":1,"exception":"[object] (TypeError(code: 0): Argument 1 passed to Spatie\\Backup\\Tasks\\Monitor\\BackupDestinationStatusFactory::createForMonitorConfig() must be of the type array, null given, called in D:\\laragon\\www\\ERP\\vendor\\laravel-admin-ext\\backup\\src\\Backup.php on line 15 at D:\\laragon\\www\\ERP\\vendor\\spatie\\laravel-backup\\src\\Tasks\\Monitor\\BackupDestinationStatusFactory.php:11)
Argument 1 passed to Spatie\Backup\Tasks\Monitor\BackupDestinationStatusFactory::createForMonitorConfig() must be of the type array, null given, called
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.