user logs

This commit is contained in:
Pringgosutono
2025-10-16 11:59:06 +07:00
parent 18897186e0
commit fbbcf86509
17 changed files with 355 additions and 8 deletions

20
app/Models/UserLogs.php Normal file
View File

@ -0,0 +1,20 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
class UserLogs extends Model
{
public static function insert($userId, $log)
{
$now = time();
return DB::insert("INSERT into t_user_log
set
userId = ?,
log = ?,
crt = ?
", [$userId, $log, $now]);
}
}