Build and work with Erag Laravel Pwa installation, manifest updates, Blade directives, service worker registration, install prompt configuration, runtime manifest updates, and logo upload handling. Use when adding or updating PWA support in Laravel Blade, Livewire, Vue, or React applications with this package.
php artisan boost:add-skill erag/laravel-pwa
Save this content to: .claude/skills/laravel-pwa-setup/SKILL.md
# Laravel PWA Setup
Use this skill when a task involves this package's install command, manifest update command, Blade directives, facade usage, config, or PWA logo upload flow.
## Read First
Read `reference.md` in this folder before making changes. It contains the package API, implementation notes, and package-native examples.
## Working Rules
- Use `php artisan erag:install-pwa` for initial package publishing.
- Use `php artisan erag:update-manifest` after changing `config/pwa.php` manifest values.
- Put `@PwaHead` inside the layout `<head>`.
- Put `@RegisterServiceWorkerScript` before the closing `</body>`.
- Use `EragLaravelPwa\Facades\PWA` for runtime manifest writes.
- Use `EragLaravelPwa\Core\PWA::processLogo($request)` for PNG logo upload handling.
- Keep examples aligned with `config/pwa.php`, `public/manifest.json`, `public/sw.js`, `public/offline.html`, and `public/logo.png`.
- Mention HTTPS requirements whenever the task involves service workers or installability.
## Implementation Notes
- The package publishes `config/pwa.php`, `manifest.json`, `offline.html`, `sw.js`, and `logo.png`.
- The Blade directives are `@PwaHead` and `@RegisterServiceWorkerScript`.
- The install button is controlled by `config('pwa.install-button')`.
- Livewire-specific script output is controlled by `config('pwa.livewire-app')`.
- Runtime manifest updates write to `public/manifest.json`.
## Output Expectations
- Show package-native examples first.
- Keep snippets idiomatic for Laravel applications.
- When documenting setup, use the exact Artisan commands exposed by this package.
Use this skill when a task involves this package's install command, manifest update command, Blade directives, facade usage, config, or PWA logo upload flow.
Read reference.md in this folder before making changes. It contains the package API, implementation notes, and package-native examples.
php artisan erag:install-pwa for initial package publishing.php artisan erag:update-manifest after changing config/pwa.php manifest values.@PwaHead inside the layout <head>.@RegisterServiceWorkerScript before the closing </body>.EragLaravelPwa\Facades\PWA for runtime manifest writes.EragLaravelPwa\Core\PWA::processLogo($request) for PNG logo upload handling.config/pwa.php, public/manifest.json, public/sw.js, public/offline.html, and public/logo.png.config/pwa.php, manifest.json, offline.html, sw.js, and logo.png.@PwaHead and @RegisterServiceWorkerScript.config('pwa.install-button').config('pwa.livewire-app').public/manifest.json.How can I help you explore Laravel packages today?