PHP code example of dp-0 / user-activity

1. Go to this page and download the library: Download dp-0/user-activity 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/ */

    

dp-0 / user-activity example snippets


use Dp0\UserActivity\Traits\UserActivity;

class YourModel extends Model
{
    use UserActivity;

    // Your model code here
}
bash
php artisan user-activity:install