anandpilania/laravel-docs 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

anandpilania/laravel-docs

Composer 安装命令:

composer require anandpilania/laravel-docs

包简介

Docs reader for laravel.

README 文档

README

Docs reader for laravel, currently supported extensions is: .md Helpful to use it as knowledge base or faq of your project or features.

Features

  • Render .md docs
  • Security: Configure access
  • You can request/suggest more features

How to use

  • Install:

    • git : git clone https://github.com/AnandPilania/laravel-docs.git

    • composer : composer install anandpilania/laravel-docs

    • Register Provider to config/app.php :

    • AP\Docs\ServiceProvider::class

    Instead of Facade, I used Contract, so Docs can be directly accessible to any class.

  • Publish the config and resources:

    • php artisan vendor:publish
  • Configure package according to your need (app/docs.php):

    • disk.root => Root path of all documents (by default: storage/app/docs)

    http : Responsible for default routes

    • prefix => Route prefix (default: /docs)
    • middleware => By default, web is used as a middleware group

    default' : This section responsible for rendering the default doc`

    • vendor => Default: storage/app/docs/laravel
    • version => Default: 5.4
    • page => Load default (installation) file while accessing //HOSTNAME/docs/laravel/5.4.
    • index => Default index file
    • extension => Currently this package supports only .md, so don't change it.

    security : Limit the access of docs

    • enabled => Its up to you, to enable this feature or not. true||false
    • file => Configure the file name of security according to your wish. default security.json Add this security.file to the vendor directory.

    extensions :

    • supported => Add extensions those are supported for render (currently .md), remaning extensions will excluded
    • excluded => Files containing these extensions will not displayed in the list
  • Sample security.json (ex: /storage/docs/app/laravel/security.json):

    { "roles": ["users"], "permissions": ["docs.show.versions"] }

NOTE: Default route are hard-coded to the ServiceProvider file of the package.

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固