Hello ,
I have a specific mutator called done
it returns true
if the 'updated_at' is larger than 'cretaed_at'.
public function getDoneAttribute()
{
return ($this->created_at < $this->updated_at);
}
the code bellow returns an errro :
$i = \App\User::where('done',true)->get();
The error :
Undefined column: 7 ERROR: column "done" does not exist LINE 1:
Top comments (0)