HomeController.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace App\Admin\Controllers;
  3. use App\Http\Controllers\Controller;
  4. use Encore\Admin\Controllers\Dashboard;
  5. use Encore\Admin\Facades\Admin;
  6. use Encore\Admin\Layout\Column;
  7. use Encore\Admin\Layout\Content;
  8. use Encore\Admin\Layout\Row;
  9. class HomeController extends Controller
  10. {
  11. public function index()
  12. {
  13. return Admin::content(function (Content $content) {
  14. $content->header('Dashboard');
  15. $content->description('Description...');
  16. $content->row(Dashboard::title());
  17. $content->row(function (Row $row) {
  18. $row->column(4, function (Column $column) {
  19. $column->append(Dashboard::environment());
  20. });
  21. $row->column(4, function (Column $column) {
  22. $column->append(Dashboard::extensions());
  23. });
  24. $row->column(4, function (Column $column) {
  25. $column->append(Dashboard::dependencies());
  26. });
  27. });
  28. });
  29. }
  30. }