This is a laravel-admin
extension that integrates wx_menu into laravel-admin
.
First, install dependencies:
composer require yisonli/wxmenu
Then, publish the resource directory:
php artisan vendor:publish --tag=wxmenu --force
In the extensions
section of the config/admin.php
file, add some configuration that belongs to this extension.
'extensions' => [
'wxmenu' => [
// set to false if you want to disable this extension
'enable' => true,
]
]
Use it in the form form:
$form->wxmenu('content');
// Also you can set default value like this
$form->wxmenu('content')->default($default_value);
Licensed under The MIT License.
name: yison.li
blog: http://yyeer.com
github: https://github.com/yisonli