Is it fair that the original answerer gets the reputation with the wrong answer?
This isn't what happened.
$timestamps
instead of$timestamp
According to the help center, specifically the "To correct minor mistakes" point, this is an acceptable edit to make on an answer. It's fixing a typo, not changing what the answer says the code does. You can find further clarification in the FAQ: When should I make edits to code?.
Given that fixing this syntax error was enough to solve your problem, I don't see a problem with the OP getting reputation for this. Other than a minor typo, which was fixed, their answer was correct.
After that, another user commented it should be public instead of protected and he himself edited it as well.
That comment happened 6 months later. The edit was both 8 months after the answer solved your problem and 2 weeks after someone else left their own answer using public instead of protected with an explanation that it's necessary when "using Laravel 5 or above".
According to this article, version 5 wasn't released until February 4, 2015: two days after you asked your question and got an answer. I don't know how fast Laravel users update which version they're using but it's likely that most of the up votes also came from people using versions older than version 5.
So the situation you're asking about didn't even happen here. This user did not get reputation for posting an incorrect answer. They posted a correct answer with a minor typo that didn't work for versions that came out after they created their post.