material-ui
material-ui copied to clipboard
使用material-ui 模版,在使用helpers/terminal/artisan插件的时候有bug
如图所示。 使用默认模版的时候是正常的。 具体表现在,选择artisan命令的时候,会自动出现红框所示的代码。

这个问题我今天遇到了,应该插件改写了样式造成的。可以看图3中。

Hey! I confirm, there are errors when using the plugin material-ui. The error description can be viewed in the web browser console. Error in JS. Therefore, the use of laravel-admin with material-ui causes such bugs that you showed in the screenshot. To solve the problem, I created my own MaterialUIServiceProvider, the same as in the installed extension. I connected it according to all the Laravel rules. And commented out line # 45 in the file MaterialUIServiceProvider.php: // Admin::script('$.material.init()'); The JS error is gone. Plugin initialization at that point was causing an error.