<?phpnamespaceModules\User\Presenters;useLaracasts\Presenter\Presenter;classUserPresenterextendsPresenter{/** * Return the gravatar link for the users email * @param int $size * @return string */publicfunctiongravatar($size=90){$email=md5($this->email);return"//www.gravatar.com/avatar/$email?s=$size";}publicfunctionfullname(){return$this->first_name.' '.$this->last_name;}