PHP code example of taecontrol / larastats-wingman

1. Go to this page and download the library: Download taecontrol/larastats-wingman 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/ */

    

taecontrol / larastats-wingman example snippets


...
/**
 * Register the exception handling callbacks for the application.
 *
 * @return void
 */
public function register()
{
    if (! app()->environment('testing')) {
        $this->reportable(function (Throwable $e) {
            /** @var LarastatsWingman $wingman */
            $wingman = app(LarastatsWingman::class);

            $wingman->captureException($e);
        });
    }
}
...