I Removed Menu Item from Menu builder. It is also deleted from Database but the View is Still Rendering that Menu Item and Menu Builder Shows Deleted Item Entry. When I tried to delete it again, it throws 404 error.
Steps to reproduce the behavior:
As it's already deleted from menu builder, it should not be rendered in Side Bar menu.
I Tried clearing View Cache by running php artisan view:clear but the problem is still there.
I had same issue, deleting cache helped, but still it is bug that has to be fixed..
@vkiranmaniya it is not view cache, storage/framework/cache/data. Delete the folder and it will be fixed..
Run these commands php artisan view:clear and php artisan cache:clear
VoyagerMenuController.php line 22
public function delete_menu($menu, $id)
{
$item = Voyager::model('MenuItem')->findOrFail($id);
$this->authorize('delete', $item);
$item->deleteAttributeTranslation('title');
$item->destroy($id);
\Artisan::call('cache:clear'); // clear cache command
return redirect()
->route('voyager.menus.builder', [$menu])
->with([
'message' => __('voyager::menu_builder.successfully_deleted'),
'alert-type' => 'success',
]);
}
VoyagerMenuController.php ligne 22
fonction publique delete_menu ($ menu, $ id)
{
$ item = Voyager :: model ('MenuItem') -> findOrFail ($ id);$this->authorize('delete', $item); $item->deleteAttributeTranslation('title'); $item->destroy($id); \Artisan::call('cache:clear'); // clear cache command return redirect() ->route('voyager.menus.builder', [$menu]) ->with([ 'message' => __('voyager::menu_builder.successfully_deleted'), 'alert-type' => 'success', ]); }
Merci bro tu as g茅r茅 !!!!
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.
Most helpful comment
Run these commands
php artisan view:clearandphp artisan cache:clear