Overview:
This product is a package for the Laravel framework that allows users to create menus and pages with support for multiple locales, nesting, templates, static and dynamic data, roles, and permissions. It requires Laravel v5.5+ and relies heavily on caching, so it is recommended to install a caching driver such as Memcached or Redis.
Features:
- MultiLocale Support: Create menus and pages with support for multiple locales including titles, URLs, and body content in different languages.
- Nesting: Organize menus and pages into nested structures for better organization and navigation.
- Template Support: Customize the look and feel of menus and pages using templates.
- Static & Dynamic Data: Add static content to menus and pages, as well as dynamic data that can be fetched from a database or API.
- Roles & Permissions: Control access to menus and pages based on user roles and permissions.
Installation:
Install the package by running the following command:
composer require ctf0/simple-menuAfter the installation, add the package routes to the
routes/web.phpfile by running the following command:php artisan sm:setupCompile the package assets to
webpack.mix.jsby running the following command:php artisan vendor:publishPublish the package assets by running the following command:
php artisan vendor:publishInstall the required JS dependencies by running the following command:
npm installAdd the following one-liner to your main JavaScript file and compile your JS/CSS files by running the following command:
npm run watchIf you encounter any issues, check the configuration file
config/simpleMenu.phpfor any errors or missing settings.
Summary:
This product is a Laravel package that allows users to easily create menus and pages with various features such as multiLocale support, nesting, template customization, static and dynamic data, and roles and permissions. The installation process involves installing the package, setting up routes, compiling assets, and configuring the package settings.