Download the PHP package susantokun/filament-dynamic-menu without Composer

On this page you can find all versions of the php package susantokun/filament-dynamic-menu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-dynamic-menu

Filament Dynamic Menu

Database-driven dynamic navigation menus for Filament panels with multi-tenancy support.

Alih-alih mendefinisikan navigasi secara statis di PanelProvider, package ini memungkinkan kamu mengelola sidebar menu langsung dari Filament admin panel — termasuk grup, item, visibility berbasis role/permission, badge, dan pengaturan sidebar.


Persyaratan


Langkah Instalasi

1. Install via Composer

2. Jalankan Perintah Install

Perintah ini akan:

Gunakan opsi --force jika kamu ingin menimpa file yang sudah ada:

3. Aktifkan Dynamic Menu

Buka .env dan tambahkan:

Atau ubah langsung di config/filament-dynamic-menu.php:

4. Daftarkan Plugin di PanelProvider

Buka app/Providers/Filament/AdminPanelProvider.php (atau PanelProvider yang kamu gunakan), lalu tambahkan FilamentDynamicMenuPlugin ke ->plugins():

Selesai! Cukup tambahkan plugin, semua resource, page, cluster, dan navigasi otomatis terdaftar. Tidak perlu trait, tidak perlu daftar manual resource/page satu per satu.

5. (Opsional) Konfigurasi Role & Permission

Jika kamu menggunakan spatie/laravel-permission, tentukan model Role dan Permission di config/filament-dynamic-menu.php:

Jika kamu menggunakan bezhansalleh/filament-shield, package ini akan otomatis me-resolve nama permission dari Resource/Page/Cluster target.


Integrasi Legacy (Trait)

Jika kamu membutuhkan kontrol lebih granular (misalnya panel berbeda dengan konfigurasi berbeda), gunakan trait HasDynamicMenu:

Ubah registration_mode di config ke auto:

Lalu di PanelProvider:


Hasil Akhir

Setelah semua langkah selesai, buka Filament admin panel kamu. Di sidebar akan muncul Settings > Menu Settings yang berisi:

Menu Fungsi
Groups Kelola grup navigasi (nama, icon, urutan, visibility, role)
Items Kelola item navigasi (Resource, Page, Cluster, URL, Separator)
Sidebar Pengaturan sidebar: collapsible groups, sidebar collapse

Saat pertama kali, jika belum ada data menu, package akan otomatis menjalankan DefaultMenuSeeder yang membuat:

Konfigurasi Penting

Key Default Keterangan
enabled false Master switch dynamic menu
tenant_mode single single, stancl, atau custom
tenant_model null FQCN model tenant (untuk mode custom)
cache.ttl 86400 Cache TTL dalam detik (24 jam)
shield_integration true Auto-resolve permission Shield
auto_seed_on_empty true Auto-seed saat data menu kosong
registration_mode plugin plugin (rekomendasi) atau auto (legacy)
panel_id admin ID panel (hanya untuk mode auto)

Facade

Package ini menyediakan facade DynamicMenu:


Multi-Tenancy

Package mendukung 3 mode tenant:

Saat mode selain single, semua tabel akan memiliki kolom tenant_id dan data menu akan di-scope per tenant.


Lisensi

MIT


All versions of filament-dynamic-menu with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^5.0
spatie/laravel-package-tools Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package susantokun/filament-dynamic-menu contains the following files

Loading the files please wait ...