bug fixes on activity log and array_key_first alt using reset
This commit is contained in:
@@ -47,8 +47,10 @@ class Controller extends BaseController
|
||||
return $response;
|
||||
|
||||
}
|
||||
public function logUsersActivity($type, $content){
|
||||
$user_id = session('current_user.id');
|
||||
public function logUsersActivity($type, $content, $user_id = null){
|
||||
if($user_id == null){
|
||||
$user_id = session('current_user.id');
|
||||
}
|
||||
$activity_arr = [
|
||||
'type' => $type,
|
||||
'content' => $content,
|
||||
|
||||
Reference in New Issue
Block a user