src/User/User.php
public function getAvatarUrlAttribute(string $value = null)
    {
        if ($value && strpos($value, '://') === false) {
            return app(UrlGenerator::class)->to('forum')->path('assets/avatars/'.$value);
        }

        return $value;
    }
public function getAvatarUrlAttribute(string $value = null)
    {
        if ($value && strpos($value, '://') === false) {
            return app(UrlGenerator::class)->to('forum')->path('assets/avatars/'.$value);
        }

        return $value;
    }
public function getAvatarUrlAttribute ( string $ value = null ) { if ( $ value && strpos ( $ value , '://' ) === false ) { return app ( UrlGenerator :: class ) -> to ( 'forum' ) -> path ( 'assets/avatars/' . $ value ) ; } return $ value ; }
Get the URL of the user's avatar.

@todo Allow different storage locations to be used
@param string|null $value
@return string
Get the URL of the user s avatar .