public function handle(BreadDeleted $bread)
    {
        if (config('voyager.bread.add_menu_item')) {
            $menuItem = Voyager::model('MenuItem')->where('route', 'voyager.'.$bread->dataType->slug.'.index');

            if ($menuItem->exists()) {
                $menuItem->delete();
            }
        }
    }
public function handle(BreadDeleted $bread)
    {
        if (config('voyager.bread.add_menu_item')) {
            $menuItem = Voyager::model('MenuItem')->where('route', 'voyager.'.$bread->dataType->slug.'.index');

            if ($menuItem->exists()) {
                $menuItem->delete();
            }
        }
    }
public function handle ( BreadDeleted $ bread ) { if ( config ( 'voyager.bread.add_menu_item' ) ) { $ menuItem = Voyager :: model ( 'MenuItem' ) -> where ( 'route' , 'voyager.' . $ bread -> dataType -> slug . '.index' ) ; if ( $ menuItem -> exists ( ) ) { $ menuItem -> delete ( ) ; } } }
Delete a MenuItem for a given BREAD.

@param BreadDeleted $bread

@return void
Delete a MenuItem for a given BREAD .