AdminConfigController.php 571 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Admin\Controllers;
  3. use App\Models\AdminConfig;
  4. use Encore\Admin\Controllers\AdminController;
  5. use Encore\Admin\Layout\Content;
  6. use Encore\Admin\Show;
  7. use Encore\Admin\Widgets\Box;
  8. class AdminConfigController extends AdminController
  9. {
  10. protected $title = '管理后台配置';
  11. public function index(Content $content)
  12. {
  13. $box = new Box('Box标题', 'Box内容');
  14. $box->removable();
  15. $box->collapsable();
  16. $box->style('info');
  17. $box->solid();
  18. $box->scrollable();
  19. return $box;
  20. }
  21. }