PHP code example of rummykhan / xlog

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

    

rummykhan / xlog example snippets


\Torann\GeoIP\GeoIPServiceProvider::class,
RummyKhan\XLog\XLogServiceProvider::class,

\RummyKhan\XLog\Http\Middleware\XLogMiddleware::class,

'ignore_environments' => ['local', 'test'],

'db_type' => 'mongodb'

'connection' => env('DB_CONNECTION')

'table' => 'logs'

'routes' => [
    'index'  => [ 'route' => '/admin/logs',      'action' => 'XLogController@index'],        // HTTP Method is GET
    'detail' => [ 'route' => '/admin/logs/{id}', 'action' => 'XLogController@detail'],       // HTTP Method is GET
    'delete' => [ 'route' => '/admin/logs/{id}', 'action' => 'XLogController@delete']        // HTTP Method is DELETE
],

'middleware' => ['auth']
bash
php artisan vendor:publish
bash
php artisan geoip:update
bash
php artisan migrate