PHP code example of thanosalexander / activity
1. Go to this page and download the library: Download thanosalexander/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/ */
thanosalexander / activity example snippets
$type= \Type::create([
'name'=>'login',
'description'=>'login action',
'label'=>'Login'
]);
$activity = \Activity::create([
'user_id'=>0,
'type_id'=>3,
'content'=>'The content of this action',
'ip'=> \Illuminate\Support\Facades\Request::getClientIp()
]);