pwa for laravel

0.1.8 2023-03-13 11:55 UTC

This package is auto-updated.

Last update: 2024-12-13 16:20:14 UTC


README

  • Starts
  • Forks Total Downloads

laravelir/pwa

pwa for laravel

Installation / Use

  1. Run the command below to add this package:
composer require laravelir/pwa
  1. Open your config/app.php and add the following to the providers array:
Laravelir\Pwa\Providers\PwaServiceProvider::class,
  1. Run the command below to install the package:
php artisan pwa:install
  1. open pwa.php config file and fill your configs and run bellow command to generate manifest.json file:
php artisan pwa:generate
  1. and add pwa directives to your master file:
<html>
<head>
    <title>My Pwa Project</title>
    ...
    
    @pwa_metas
</head>
<body>
    ...
    My content
    ...
    
    @pwa_sw
</body>
</html> 
  1. create offline view and route:

Services

Features

safari support

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.