can someone help me with this error?
Indirect modification of overloaded property App\Article::$atributes has no effect
Here's the code:
public function setPublishedAtAttribute($date){
$this->atributes['published_at'] = Carbon::createFromFormat('Y-m-d', $date);
}
I am trying to add clock to my published_at column...
Oh, I've fount the problem a few minutes after I've posted this question...
$this->attributes['published_at'] = Carbon::createFromFormat('Y-m-d', $date);
I've missed one "t" letter in Attributes. :)