anandpilania / laravel-docs
Docs reader for laravel.
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
pkg:composer/anandpilania/laravel-docs
Requires
- erusev/parsedown-extra: 0.7.1
- illuminate/config: 5.*
- illuminate/filesystem: 5.*
- illuminate/http: 5.*
- illuminate/routing: 5.*
- illuminate/support: 5.*
- league/commonmark: 0.15.*
- symfony/browser-kit: ~3.3
This package is auto-updated.
Last update: 2025-10-13 06:46:13 UTC
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 .mddocs
- 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 Providertoconfig/app.php:
- 
AP\Docs\ServiceProvider::class
 Instead of Facade, I usedContract, soDocscan be directly accessible to anyclass.
- 
- 
Publish the configandresources:- 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,- webis used as a middleware group
 default' : This section responsible for rendering the defaultdoc`- vendor=> Default: storage/app/docs/laravel
- version=> Default: 5.4
- page=> Load default (installation) file while accessing //HOSTNAME/docs/laravel/5.4.
- index=> Default- indexfile
- extension=> Currently this package supports only- .md, so don't change it.
 security: Limit the access ofdocs- enabled=> Its up to you, to enable this feature or not.- true||- false
- file=> Configure the file name of- securityaccording to your wish. default- security.jsonAdd this- security.fileto the- vendordirectory.
 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"] }