PHP code example of kotfire / system-alerts

1. Go to this page and download the library: Download kotfire/system-alerts 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/ */

    

kotfire / system-alerts example snippets


'Kotfire\SystemAlerts\SystemAlertsServiceProvider',

'SystemAlert' => 'Kotfire\SystemAlerts\Facades\SystemAlert',
 artisan down

$alerts = SystemAlert::loadAlerts();

$ php artisan config:publish kotfire/system-alerts

$ php artisan view:publish kotfire/system-alerts

$ php artisan alert:maintenance

$ php artisan alert:maintenance -m "Maintenance in {time}" -t 15

$ php artisan alert:maintenance -d

$ php artisan alert "Message" [-d "datetime"]

$ php artisan alert "This is an alert"

$ php artisan alert "This message will self-destruct in {time}" -d "12:50"

$ php artisan alert:delete ID

$ php artisan alert:list

$ php artisan alert:clear