acelords/laravel-docsify

There is no license information available for the latest version (1.0.1) of this package.

Add Docsify to Laravel

1.0.1 2021-01-04 22:21 UTC

This package is auto-updated.

Last update: 2024-11-05 06:55:51 UTC


README

This package provides an easy way to add documentation to your project using docsify.

Installation

You can install the package via Composer:

composer require acelords/laravel-docsify

The package will automatically register itself.

Optionally, publish its config file to config/docsify.php:

php artisan vendor:publish --provider="AceLords\Docsify\DocsifyServiceProvider"

Documentation

Add your markdown documentation files in the docs/ folder and goto the /docs route to view your documentation.
You can change the route and the route middleware in the config file.

middleware

Examples:

  • permission:view-docs
  • role: admin|sudo
  • ['auth', 'role:sudo|admin']
  • ['auth', 'permission:view-docs']
  • ['auth', 'role:sudo|admin', 'permission:view-docs']
  • ['auth:sanctum', 'role:sudo|admin', 'permission:view-docs']