- How do I install and set up baks-dev/menu-admin in a Laravel project?
- Run `composer require baks-dev/menu-admin`, then install assets and configure the package with `php bin/console baks:assets:install`. Register the CLI commands in your `AppServiceProvider` and run migrations using Doctrine’s `doctrine:migrations:diff` and `doctrine:migrations:migrate`.
- Does this package work with Laravel’s built-in authentication system?
- No, it assumes external auth like Laravel’s `auth()` or `spatie/laravel-permission`. You’ll need to manually link menu items to user roles via middleware or gates. The package itself doesn’t enforce permissions.
- Can I use this package with Laravel’s native Eloquent ORM instead of Doctrine?
- No, the package relies on Doctrine migrations and entities. You’ll need to manually bridge Doctrine models to Eloquent or use a hybrid approach (Doctrine for package tables, Eloquent for custom ones).
- What Symfony dependencies does this package require, and will they conflict with Laravel?
- It requires `symfony/console` and `symfony/dependency-injection`. These are compatible with Laravel via Composer, but you may need to manually alias Symfony services or extend Laravel’s container. No native Laravel Facades are provided.
- How do I integrate the package’s JS/CSS assets with Laravel Mix or Vite?
- Assets must be manually integrated. Copy the files to your `public` or `resources` folders and configure Laravel Mix/Vite to process them. Check for version conflicts with existing dependencies like Bootstrap or jQuery.
- Does this package support dynamic menu items (e.g., fetched via API) or only static database entries?
- The package is designed for static or semi-dynamic menus stored in the database. Dynamic menus (e.g., API-driven) would require custom extensions or overriding the core logic, which isn’t documented.
- Is there multi-language support for menu items, and how does it work with Laravel’s localization?
- Multi-language support isn’t explicitly documented. If needed, you’d likely extend the Doctrine schema or override templates to integrate with Laravel’s `App::setLocale()` or packages like `laravel-localization`.
- What Laravel versions and PHP versions are supported?
- The package requires PHP 8.4+ and is listed as version 7.4.6, but no explicit Laravel version support is mentioned. Test thoroughly, as Symfony dependencies may introduce compatibility risks with older Laravel versions.
- Are there performance optimizations like caching for large admin menus?
- No caching strategies are documented. Menu queries could impact performance for large datasets. Consider adding Redis or database query caching manually if needed.
- Who maintains this package, and is it actively updated? What’s the risk of using it?
- The package appears abandoned, with no recent GitHub activity or issue responses. The last release date (2026) may be a placeholder. Use at your own risk, especially for production, and consider alternatives like `spatie/laravel-menu` or `orchid/software`.