poseso / pwa
Laravel 渐进式网络应用
dev-master
2021-08-15 01:11 UTC
Requires
- php: ^7.0|^7.1|^7.2|^7.3|^7.4|^8.0
- illuminate/support: ^5.6|^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^7.0|^8.0
This package is auto-updated.
Last update: 2024-09-15 07:50:54 UTC
README
从 Codexshaper/laravel-pwa 分支而来
增加了对 PHP 8+ 的支持
感谢 Codexshaper 为这个优秀的包做出的贡献。
描述
可安装的 PWA 用于 Laravel。在 5 分钟内将 PWA 集成到您的 Laravel 网站中。
要求
它只支持 HTTPS 和 localhost(HTTP 和 HTTPS 都支持)
点击这里查看视频教程。
下载
composer require codexshaper/laravel-pwa
安装
php artisan pwa:install
使用:在关闭 head 标签前添加以下代码
{{ pwa_meta() }}
或者
@PWA
最终配置您自己的信息。前往 {{url}}/pwa
此外,您还可以在所有 JavaScript 加载后添加以下脚本以确保 bootstrap 4 自定义文件输入正常工作
$(".custom-file-input").on("change", function() {
var fileName = $(this).val().split("\\").pop();
$(this).siblings(".custom-file-label").addClass("selected").html(fileName);
});
贡献者
- Md Abu Ahsan Basir - 创建者和维护者 - github