soluzione-software / laravel-pwa
0.2.0
2021-07-22 15:15 UTC
Requires
- php: ^7.3|^8.0
- illuminate/routing: ^8.0
- illuminate/support: ^8.0
This package is auto-updated.
Last update: 2024-09-22 22:14:32 UTC
README
请注意,该包目前处于beta测试阶段。在beta测试期间,可能会发生变更。在稳定版本发布之前,请勿在生产环境中使用。感谢您帮助测试和报告任何错误。
PWA 用于Laravel应用程序。
安装与配置
- 通过composer安装
composer require soluzione-software/laravel-pwa
- 编辑
resources/views/layouts/app.blade.php
视图
<!doctype html> <html lang="en"> <head> @include('pwa::head') <!-- other tags --> </head> <body> @yield('content') <!-- Scripts --> @include('pwa::footer') <!-- other scripts --> </body> </html>
- 发布
public
文件
php artisan vendor:publish --tag=pwa-public
- 编辑
public/app.webmanifest
。
本地禁用
将以下行添加到 .env
中以禁用此包
PWA_ENABLED=false