First of all, I am not very familiar with Laravel (or the term "dirty")
. I came across this line of code -
if ($this->isDirty('status')) { if (Notification::has('website-status-' . strtolower($this->status))) { Notification::set($this->account, 'website-status-' . strtolower($this->status), $this->emailAttributes()) ->email(); } }
And I could not understand what this means. I tried to find out on the Internet, but the Laravel site only talks about it
"Determine if this attribute is dirty."
which doesnβt help much ...
php laravel
shay.k
source share