PHP code example of rectitude-open / filament-info-alert

1. Go to this page and download the library: Download rectitude-open/filament-info-alert 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/ */

    

rectitude-open / filament-info-alert example snippets


return [
];

namespace App\Providers\Filament;

use RectitudeOpen\FilamentInfoAlert\FilamentInfoAlertPlugin;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->plugins([
                FilamentInfoAlertPlugin::make()
            ]);
    }
}
bash
php artisan vendor:publish --tag="filament-info-alert-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-info-alert-translations"