PHP code example of wasp / wasp-laravel

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

    

wasp / wasp-laravel example snippets


public function report(Exception $exception)
{

    if( app()->bound( 'wasp' ) && $this->shouldReport( $exception ) )
    {
        app( 'wasp' )->exception_handler( $exception );
    }
    parent::report($exception);
}

bash 
php artisan vendor:publish --provider='Wasp\WaspLaravel\WaspServiceProvider'