Laravel-Backpack/MenuCRUD

url method problem if internal link is null

frankar opened this issue · 2 comments

in MenuItem.php I suggest:

        case 'internal_link':
            return is_null($this->link) ? "#" : url($this->link);
            break;

because if the internal_link is not compiled when you render it, you has this error:
htmlspecialchars() expects parameter 1 to be string, object given

Hi @frankar,

Thank, just pushed the fix.

Cheers!