'datetime:Y-m-d H:i:s', // ]; public static function cachedDistinctActionDetail() { return Cache::remember('user_log_distinct_action_detail', 3600, function () { return self::select('action_detail')->distinct()->get(); }); } //cachedDistinctUser public static function cachedDistinctUser() { return Cache::remember('user_log_distinct_user', 3600, function () { return self::select('user_name')->distinct()->get(); }); } public function user() { return $this->belongsTo(User::class); } }