Skip to content

laravelir/pwa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • 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.