Open
Description
Call to undefined method Haruncpi\LaravelUserActivity\Controllers\ActivityController::validate().
I checked and reliazed the problem is coming from the handleData method of the ActivityController in your code.
$this->validate($request, [
'action' => 'required|string',
'user_id' => 'sometimes|numeric',
'log_type' => 'sometimes|string',
'table' => 'sometimes|string',
'from_date' => 'sometimes|date_format:Y-m-d',
'to_date' => 'sometimes|date_format:Y-m-d'
]);
When I changed it to:
$request->validate([
'action' => 'required|string',
'user_id' => 'sometimes|numeric',
'log_type' => 'sometimes|string',
'table' => 'sometimes|string',
'from_date' => 'sometimes|date_format:Y-m-d',
'to_date' => 'sometimes|date_format:Y-m-d'
]);
The problem was resolved. But for some other reason, I am not getting any log data in the UI.
Metadata
Metadata
Assignees
Labels
No labels