PHP code example of emran-alhaddad / statamic-logbook

1. Go to this page and download the library: Download emran-alhaddad/statamic-logbook 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/ */

    

emran-alhaddad / statamic-logbook example snippets


use Illuminate\Support\Facades\Schedule;

Schedule::command('logbook:flush-spool --type=all --limit=1000')
    ->everyFiveMinutes()
    ->withoutOverlapping();

Schedule::command('logbook:flush-spool')->everyFiveMinutes();

   \Log::error('logbook smoke test', ['source' => 'manual-check']);
  
bash
composer vendor:publish --tag=logbook
php artisan logbook:install
bash
php artisan config:clear
bash
php artisan logbook:install
bash
php artisan logbook:flush-spool
bash
php artisan logbook:flush-spool --type=all --limit=1000
php artisan logbook:flush-spool --type=system --dry-run