Coder Social home page Coder Social logo

document's Introduction

介绍

配合LaravelGitBookMarkdown生成器

安装

依赖库

composer require temporaries/document

发布配置

php artisan vendor:publish --provider="Temporaries\Document\DocumentServiceProvider" --tag="config"

生成 Markdown

php artisan document:generate

注解

可以在模型里添加注解

  • DocName 别名
  • DocRelated 关联的模型

例:

在 Activity 模型里添加

/**
 * @DocName=活动
 * @DocRelated=Member
 */

生成的markdown

Activity 活动

Parameter Type Length Comment
id Integer
name String 64 名称
temple_id Integer 寺庙ID
organizer String 128 主办方
thumb String 255 缩略图
content Text 内容
comments Integer 评论数
recommend Integer 推荐:1是 0 否
price Decimal 价格
limit_number Integer 最多人数
registered_number Integer 已报名的人数`
start_at DateTime 开始时间
end_at DateTime 结束时间
created_at DateTime
updated_at DateTime
deleted_at DateTime
Member Object 用户

document's People

Contributors

bygo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.