On this question, I posted a comment which went roughly along the lines of:
Consider learning the basics of PHP first before using a framework.
and I was confused as to why it was deleted. I'm unsure what reason it was flagged as / or if a mod came across the comment and just deleted it. My intention was never to be rude, I was being genuine based on the code that the OP provided:
$data = UserTracker::create([
if(Auth::check()) {
'user_id' => Auth::user()->id,
}
// rest of it...
They tried to nest an if statement within an array which wouldn't have happened if they knew the basics of PHP.
The OP responded terribly where they went off on a rant and were vulgar, as a result I flagged their comment and it was removed. Thereafter, I noticed that my original comment was removed too for some reason. My comment had a +1an upvote, which doesn't mean that it isn't deletable but it signifies that at least one other person thought I was giving sound advice.
To prevent something like this happening again, I'm curious as to what was the reason of the removal of my comment?