composer require laravel-admin-ext/chartjs
首先安装扩展Chartjs
php artisan vendor:publish --tag=laravel-admin-chartjs
然后整配置
打开 config/admin.php, 在配置extensions扩展配置添加
'extensions' => [
'chartjs' => [
// Set to `false` if you want to disable this extension
'enable' => true,
]
],
然后就可以愉快的使用了贼好看
网友评论