PHP code example of yudhatp / laravel-activity-logs

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

    

yudhatp / laravel-activity-logs example snippets


'web' => [
    ...
    \Yudhatp\ActivityLogs\Middleware\ActivityLogMiddleware::class,
    ...
],

'user' => 'employee_id'

use Yudhatp\ActivityLogs\ActivityLogs;
ActivityLogs::log(auth()->user()->id, $request->ip(), 'Profile', 'View/Edit Profile');
bash
php artisan migrate
bash
php artisan vendor:publish --tag=yudhatp-activity-logs-config