public function getActionAttribute($value)
    {
        switch ($this->type) {
            case MenuItemContract::TYPE_ROUTE:
                return trans('menu::menu.type.route');

            case MenuItemContract::TYPE_URL:
                return trans('menu::menu.type.url');

            default:
                return trans('menu::menu.type.unknown');
        }
    }
public function getActionAttribute($value)
    {
        switch ($this->type) {
            case MenuItemContract::TYPE_ROUTE:
                return trans('menu::menu.type.route');

            case MenuItemContract::TYPE_URL:
                return trans('menu::menu.type.url');

            default:
                return trans('menu::menu.type.unknown');
        }
    }
public function getActionAttribute ( $ value ) { switch ( $ this -> type ) { case MenuItemContract :: TYPE_ROUTE : return trans ( 'menu::menu.type.route' ) ; case MenuItemContract :: TYPE_URL : return trans ( 'menu::menu.type.url' ) ; default : return trans ( 'menu::menu.type.unknown' ) ; } }
Localized string which represents the
type of the menu item.

@param $value

@return string
Localized string which represents the type of the menu item .