1. Go to this page and download the library: Download goldnead/statamic-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/ */
goldnead / statamic-activity example snippets
use Goldnead\Activity\Facades\Activity;
Activity::record('commerce.purchase_completed', [
'actor' => $user, // anything IdentityContext can resolve
'subject' => $order, // any Eloquent model
'dedupe_key' => 'mollie:'.$payment->id, // the fact's fingerprint
'properties' => ['amount' => 4900, 'currency' => 'EUR', 'product' => 'kurs'],
]);