PHP code example of misaf / vendra-activity-log

1. Go to this page and download the library: Download misaf/vendra-activity-log 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/ */

    

misaf / vendra-activity-log example snippets


'activity_model' => \Misaf\VendraActivityLog\Models\ActivityLog::class,

activity()
    ->causedBy(auth()->user())
    ->performedOn($model)
    ->withProperties(['key' => 'value'])
    ->log('Did something');
bash
composer vendor:publish --tag=activitylog-migrations
php artisan vendor:publish --tag=vendra-activity-log-migrations
php artisan migrate
bash
php artisan vendor:publish --tag=vendra-activity-log-translations
bash
php artisan vendra-activity-log:seed {tenant} permissions
bash
php artisan test --compact --testsuite=vendra-activity-log
composer stan