protected function validate(array &$data)
    {
        $messages = [];
        if (!empty($data['errors']) && !empty($data['activity']) && !empty($data['requests'])) {
            array_push($messages, ['warning', trans('It is recommended to periodically clean system logs.')]);
        }
        $data = array_merge($data, ['messages' => $messages]);
        return $data;
    }
protected function validate(array &$data)
    {
        $messages = [];
        if (!empty($data['errors']) && !empty($data['activity']) && !empty($data['requests'])) {
            array_push($messages, ['warning', trans('It is recommended to periodically clean system logs.')]);
        }
        $data = array_merge($data, ['messages' => $messages]);
        return $data;
    }
protected function validate ( array & $ data ) { $ messages = [ ] ; if ( ! empty ( $ data [ 'errors' ] ) && ! empty ( $ data [ 'activity' ] ) && ! empty ( $ data [ 'requests' ] ) ) { array_push ( $ messages , [ 'warning' , trans ( 'It is recommended to periodically clean system logs.' ) ] ) ; } $ data = array_merge ( $ data , [ 'messages' => $ messages ] ) ; return $ data ; }
validate logs verification

@param array $data
@return array
validate logs verification