fangx/dn-template

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

v1.0.0 2020-11-25 10:34 UTC

This package is auto-updated.

Last update: 2024-04-25 18:37:52 UTC


README

一个好用的后台模板(Layuimini), 基于 Layui 开发.

Install

Via Composer

composer require fangx/dn-template

Usage

所有页面默认都发布在 public/dn-template/page 里面, 根据自己的需要进行修改和调整

Hyperf

注意:

  1. 需要安装 hyperf/view-engine 并正常配置相关内容, 详见文档
  2. 需要配置静态资源的相关设置, 详见文档
  • 发布静态资源
php ./bin/hyperf.php vendor:publish fangx/dn-template
  • 配置路由
Router::addRoute(['GET', 'POST', 'HEAD'], '/dn-template/index', [\Fangx\DnTemplate\DnTemplateController::class, 'index']);
  • 启动服务 php ./bin/hyperf.php start, 访问 http://127.0.0.1:9501/dn-template/index 即可看到页面

Laravel

  • 发布静态资源
php artisan vendor:publish --tag=dn-template
  • 配置路由 routes/web.php
Route::any('/dn-template/index', [\Fangx\DnTemplate\DnTemplateController::class, 'index']);
  • 启动服务 php artisan serve, 访问 http://127.0.0.1:8000/dn-template/index 即可看到页面