PHP code example of internexus / watcher-laravel

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

    

internexus / watcher-laravel example snippets


/**
 * The application's route middleware groups.
 *
 * @var array
 */
protected $middlewareGroups = [
    'web' => [
        ...,
        \Internexus\WatcherLaravel\Middleware\WebRequestMonitoring::class,
    ],

    'api' => [
        ...,
        \Internexus\WatcherLaravel\Middleware\WebRequestMonitoring::class,
    ]

$app->register(\Internexus\WatcherLaravel\WatcherServiceProvider::class);

php artisan vendor:publish --provider="Internexus\WatcherLaravel\WatcherServiceProvider"

php artisan watcher:test