diff --git a/config/pwa.php b/config/pwa.php new file mode 100644 index 0000000..b42c548 --- /dev/null +++ b/config/pwa.php @@ -0,0 +1,72 @@ + true, + + /* + |-------------------------------------------------------------------------- + | PWA Manifest Configuration + |-------------------------------------------------------------------------- + | php artisan erag:update-manifest + */ + + // 'manifest' => [ + // 'name' => 'Digital Manufacturing', + // 'short_name' => 'LPT', + // 'background_color' => '#6777ef', + // 'display' => 'standalone', + // 'description' => 'A Progressive Web Application setup for Laravel projects.', + // 'theme_color' => '#6777ef', + // 'icons' => [ + // [ + // 'src' => 'logo.png', + // 'sizes' => '512x512', + // 'type' => 'image/png', + // ], + // ], + // ], + + 'manifest' => [ + 'name' => 'Digital Manufacturing', + 'short_name' => 'PWA', + 'start_url' => '/', + 'background_color' => '#6777ef', + 'display' => 'fullscreen', + 'description' => 'A Progressive Web Application setup for Laravel projects.', + 'theme_color' => '#6777ef', + 'icons' => [ + [ + 'src' => 'logo.png', + 'sizes' => '512x512', + 'type' => 'image/png', + ], + ], + ], + + /* + |-------------------------------------------------------------------------- + | Debug Configuration + |-------------------------------------------------------------------------- + | Toggles the application's debug mode based on the environment variable + */ + + 'debug' => env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Livewire Integration + |-------------------------------------------------------------------------- + | Set to true if you're using Livewire in your application to enable + | Livewire-specific PWA optimizations or features. + */ + + 'livewire-app' => false, +]; diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 0000000..9ada1c5 --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,16 @@ +{ + "name": "Laravel PWA", + "short_name": "LPT", + "background_color": "#6777ef", + "display": "standalone", + "description": "A Progressive Web Application setup for Laravel projects.", + "theme_color": "#6777ef", + "start_url": "/", + "icons": [ + { + "src": "logo.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/public/offline.html b/public/offline.html new file mode 100644 index 0000000..56e0cab --- /dev/null +++ b/public/offline.html @@ -0,0 +1,21 @@ + + +
+ + +