KongQi Laravel admin 入门教程文件与目录介绍

课程内容

KongQi Laravel admin 后台入门课程之文件目录说明

后端文件说明

除了 laravel 框架本身的文件就不再说明,自行查阅文档。

app/Http/Helper.php 帮助函数

app/Http/Controllers/Api/CaptchaController.php 验证码

app/Http/Controllers/Admin 后台目录 

app/Console/Commands/
    app/Console/Commands/ClearTest.php 清空演示的控制台命令文件
    app/Console/Commands/CreatePlugin.php 创建插件生成文件
    app/Console/Commands/CreatePluginModel.php 创建插件模型文件

/app/Facades 自定义 门面目录
    app/Facades/AnyUpload.php 任意上传门面
    app/Facades/PhpTree.php 树形门面

app/ExtendClass 扩展类目录 
    app/ExtendClass/AnyUpload.php 上传具体文件
    app/ExtendClass/Plugin.php 插件操作文件
    app/ExtendClass/UploadFile.php 上传处理文件  

app/Exceptions/ErrorException.php 自定义错误文件

app/Models 模型类存放目录

app/Providers/ 提供者
    app/Providers/FacadesServiceProvider.php 门面绑定提供者文件
    app/Providers/BladeServiceProvider.php Blade 快捷命令定义

app/Services/ 服务类
      app/Services/Layui.php 生成添加和编辑,搜索模板文件应用类
      app/Services/SearchServices 搜索类
      app/Services/Ui.php 模板接口类,只是为了要求方法。
      app/Services/UiService.php 模板调用输出类,例如开关switch生成,json数据模版输出,编辑/删除文件模版

app/TraitClass Trait 类
    app/TraitClass/ApiTrait.php 接口通用输出格式
    app/TraitClass/CheckFormTrait.php 表单验证
    app/TraitClass/BladeTrait.php 模板自动定位
    app/TraitClass/GetListTrait.php 列表数据
    app/TraitClass/ModelCurlTrait.php 增删改查
    app/TraitClass/QueryWhereTrait.php 查询条件
    app/TraitClass/RouteTrait.php 路由信息
    app/TraitClass/SearchScopeTrait.php 搜索条件

config/ 配置文件
    config/admin.php 系统后台配置文件
    config/debugbar.php debugbar插件 配置文件
    config/permission.php permission 配置文件
    config/copyright.php 版权文件
    config/purifier.php 防内容过滤 xxs 配置文件

plugin/ 插件目录
    plugin/Package/ 插件包安装位置
    plugin/Plugin/ 基本插件文件存储
    plugin/View/plugin/ 插件视图文件
        plugin/View/plugin/commonCurl 增删改查文件公用blade存储
        plugin/View/plugin/customErros 自定义错误目录
        plugin/View/plugin/layouts 布局目录
        plugin/View/plugin/tpl 模板tpl

public/static/ 资源文件存储目录

storage/plugin/ 插件安装目录

resources blade资源文件
|____js
| |____app.js
| |____bootstrap.js
|____lang 语言包
| |____cn
| | |____auth.php
| | |____copyright.php
| | |____pagination.php
| | |____passwords.php
| | |____validation.php
| |____en
| | |____auth.php
| | |____copyright.php
| | |____pagination.php
| | |____passwords.php
| | |____validation.php
| |____en.json
|____sass
| |____app.scss
|____views
| |____admin 后台blade文件
| | |____default
| | | |__...
| | | |____commonCurl
| | | | |____batchCreate.blade.php
| | | | |____create.blade.php
| | | | |____edit.blade.php
| | | | |____form.blade.php
| | | | |____index.blade.php

| | | |____excel
| | | | |____index.blade.php
| | | |____fileUpload
| | | | |____icon.blade.php
| | | | |____list.blade.php
| | | | |____video.blade.php
| | | |____home
| | | | |____baiduMap.blade.php
| | | | |____gaodeMap.blade.php
| | | | |____home.blade.php
| | | | |____index.blade.php
| | | | |____tengXunMap.blade.php
| | | |____layouts
| | | | |____base.blade.php
| | | | |____baseCont.blade.php
| | | | |____globalJs.blade.php
| | | | |____sidebar.blade.php
| | | | |____tab.blade.php
| | | | |____themeCss.blade.php
| | | | |____themeJs.blade.php
| | | | |____top.blade.php
| | | |____tpl
| | | | |____batch.blade.php
| | | | |____createDel.blade.php
| | | | |____editor
| | | | | |____simple.blade.php
| | | | | |____summernote.blade.php
| | | | |____form
| | | | | |____button.blade.php
| | | | | |____checkbox.blade.php
| | | | | |____color.blade.php
| | | | | |____form.blade.php
| | | | | |____formSwitchTpl.blade.php
| | | | | |____icon.blade.php
| | | | | |____img.blade.php
| | | | | |____imgInput.blade.php
| | | | | |____imgMore.blade.php
| | | | | |____label.blade.php
| | | | | |____map.blade.php
| | | | | |____radio.blade.php
| | | | | |____select.blade.php
| | | | | |____text.blade.php
| | | | | |____textarea.blade.php
| | | | |____formSearch.blade.php
| | | | |____indexBtnGroup.blade.php
| | | | |____indexTips.blade.php
| | | | |____listConfig.blade.php
| | | | |____listenEditorCreate.blade.php
| | | | |____submit.blade.php
| | | | |____table.blade.php
| |____customErros
| | |____404.blade.php
| | |____419.blade.php
| | |____minimal.blade.php
| |____lang
| | |____lang.blade.php

资源文件说明

.
|-- admin
|   |-- default
|   |   |-- admin
|   |   |   `-- css
|   |   `-- sbadmin
|   |       |-- css
|   |       |-- img
|   |       |-- js
|   |       `-- vendor
|   |-- images
|   |-- layui
|   |   |-- css
|   |   |-- font
|   |   |-- images
|   |   |   `-- face
|   |   |-- lay
|   |   |   `-- modules
|   |   |-- layui.all.js
|   |   `-- layui.js
|   `-- modules Layui 模块存放位置,
|       |-- admin.js
|       |-- cacheNav.js
|       |-- contextMenu
|       |   `-- contextMenu.css
|       |-- contextMenu.js
|       |-- custormEvent.js
|       |-- layerOpen.js
|       |-- listTable.js
|       |-- loader
|       |   `-- loader.css
|       |-- loader.js
|       |-- md5.js
|       |-- notice
|       |   `-- notice.css
|       |-- notice.js
|       |-- request.js
|       |-- tabPage.js
|       |-- tagsInput
|       |   `-- tagsInput.css
|       |-- tagsInput.js
|       |-- treeListTable.js
|       |-- treetable-lay
|       |   `-- treetable.css
|       |-- treetable.js
|       |-- uform.js
|       |-- ulaypage.js
|       |-- uploader.js
|       |-- utable.js
|       |-- uupload.js
|       `-- verify.js
|-- editor
|   |-- simple 编辑器
|   `-- summernote 编辑器

扩展包

  • composer require intervention/image 图片处理
  • composer require spatie/laravel-permission 权限控制
  • composer require phpoffice/phpspreadsheet 表格
  • composer require mews/captcha 图片验证
  • composer require laravel/ui "^2.0" 登录注册UI
  • composer require barryvdh/laravel-debugbar 调试器
  • composer require "mews/purifier:~3.0" 内容过滤
  • composer require freyo/flysystem-qcloud-cos-v5 cos存储
  • composer require zgldh/qiniu-laravel-storage 七牛存储
  • composer require jacobcyl/ali-oss-storage 阿里云存储

评论区 (0)

没有记录
支持 markdown,图片截图粘贴拖拽都可以自动上传。
黑白课堂

黑白课堂 · 技术专家

专业PHP开发

年度VIP 站长创业者玉树凌风每天醒来0收入
查看更多

最新视频课程

钻级赞助商