PHP code example of juniyasyos / filament-pwa-kaido

1. Go to this page and download the library: Download juniyasyos/filament-pwa-kaido library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

juniyasyos / filament-pwa-kaido example snippets


use Juniyasyos\FilamentPWA\FilamentPWAPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugin(FilamentPWAPlugin::make())
        ->plugin(\Juniyasyos\FilamentSettingsHub\FilamentSettingsHubPlugin::make());
}

return [
    // Middleware applied to PWA routes
    'middlewares' => [],
    
    // Enable/disable PWA routes
    'allow_routes' => true,
];
bash
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
php artisan filament-settings-hub:install 
bash
php artisan filament-pwa:install
bash
php artisan vendor:publish --tag="filament-pwa-config"
bash
php artisan vendor:publish --tag="filament-pwa-views"
bash
php artisan vendor:publish --tag="filament-pwa-lang"