soluzione-software/laravel-pwa

0.2.0 2021-07-22 15:15 UTC

This package is auto-updated.

Last update: 2024-07-22 21:53:52 UTC


README

Latest Version MIT License

Note the package is currently in beta. During the beta period things can and probably will change. Don't use it in production until a stable version has been released. We appreciate you helping out with testing and reporting any bugs.

PWA for Laravel App.

Installation & Configuration

  1. Install via composer:
composer require soluzione-software/laravel-pwa
  1. Edit resources/views/layouts/app.blade.php view:
<!doctype html>
<html lang="en">
<head>
  @include('pwa::head')

  <!-- other tags -->
</head>
<body>
@yield('content')

<!-- Scripts -->
@include('pwa::footer')

<!-- other scripts -->
</body>
</html>
  1. Publish public files:
php artisan vendor:publish --tag=pwa-public
  1. Edit public/app.webmanifest.

Disabling locally

Add the following line to .env in order to disable the package:

PWA_ENABLED=false