PHP code example of jeffgreco13 / filament-wave

1. Go to this page and download the library: Download jeffgreco13/filament-wave 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/ */

    

jeffgreco13 / filament-wave example snippets


use Jeffgreco13\FilamentWave\WavePlugin;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ...
            ->plugin(
                WavePlugin::make()
            );
    }
}

WavePlugin::make()->customers()

WavePlugin::make()
    ->customers(
        model:YourCustomerClass::class,
        resource:YourCustomerResource::class
    )

WavePlugin::make()
    ->customers(
        resource:null
    )

WavePlugin::make()->products()
bash
php artisan vendor:publish --tag="filament-wave-customers-migration"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-wave-products-migration"
php artisan migrate