bootstrap.php 959 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. // use Encore\WangEditor\WangEditor;
  3. /**
  4. * Laravel-admin - admin builder based on Laravel.
  5. * @author z-song <https://github.com/z-song>
  6. *
  7. * Bootstraper for Admin.
  8. *
  9. * Here you can remove builtin form field:
  10. * Encore\Admin\Form::forget(['map', 'editor']);
  11. *
  12. * Or extend custom form field:
  13. * Encore\Admin\Form::extend('php', PHPEditor::class);
  14. *
  15. * Or require js and css assets:
  16. * Admin::css('/packages/prettydocs/css/styles.css');
  17. * Admin::js('/packages/prettydocs/js/main.js');
  18. *
  19. */
  20. use Encore\Admin\Admin;
  21. // Encore\Admin\Form::forget(['map', 'editor']);
  22. // Encore\Admin\Form::extend('wangeditor', WangEditor::class);
  23. // Encore\Admin\Form::extend('largefile', \Encore\LargeFileUpload\LargeFileField::class);
  24. // Encore\Admin\Form::extend('chunk_file', \Encore\ChunkFileUpload\ChunkFileField::class);
  25. app('view')->prependNamespace('admin', resource_path('views/admin'));
  26. // Admin::js('https://cdn.bootcss.com/vue/2.6.10/vue.min.js');