PHP code example of adityadarma / laravel-database-logging

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

    

adityadarma / laravel-database-logging example snippets


Route::group(['middleware' => ['web', 'capture-logging']], function () {
    Route::get('/', 'WelcomeController@welcome')->name('welcome');
});

    use \AdityaDarma\LaravelDatabaseLogging\Traits\DatabaseLoggable;
    

    use DatabaseLoggable;
    
bash
    php artisan database-logging:install
    
bash
    php artisan migrate