protected function setAuthorName($userId) { if (!empty($userId)) { array_set_empty($this->data, 'fill.author', \Auth::user()->username); } }
protected function setAuthorName($userId) { if (!empty($userId)) { array_set_empty($this->data, 'fill.sender', \Auth::user()->username); array_set_empty($this->data, 'fill.sender_phone', \Auth::user()->phone); array_set_empty($this->data, 'fill.sender_email', \Auth::user()->email); } }