Skip to content

Dashboard Side menu #603

Answered by piere90
prasadjayasinghe84 asked this question in Q&A
Discussion options

You must be logged in to vote

You need to go here:

/resources/views/backend/includes/sidebar.blade.php

In this blade file PHP there are listed all the modules already present in-app, without your new module.
Copy one of the definitions like:

@php
$module_name = "posts";
$text = _('Posts');
$icon = "fa-regular fa-file-lines";
$permission = "view
".$module_name;
$url = route('backend.'.$module_name.'.index');
@endphp
<x-backend.sidebar-nav-item :permission="$permission" :url="$url" :icon="$icon" :text="$text" />

And change the name of your new module;)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@nasirkhan
Comment options

@Chamila134
Comment options

Answer selected by prasadjayasinghe84
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants