anandpilania/laravel-docs is a Laravel package for docs reader for laravel..
It currently has 0 GitHub stars and 14 downloads on Packagist (latest version 1.0.0).
Install it with composer require anandpilania/laravel-docs.
Discover more Laravel packages by anandpilania
or browse all Laravel packages to compare alternatives.
Last updated
Docs reader for laravel, currently supported extensions is: .md
Helpful to use it as knowledge base or faq of your project or features.
.md docsInstall:
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:publishConfigure 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 groupdefault' : This section responsible for rendering the default doc`
vendor => Default: storage/app/docs/laravelversion => Default: 5.4page => Load default (installation) file while accessing //HOSTNAME/docs/laravel/5.4.index => Default index fileextension => 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||falsefile => 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 excludedexcluded => Files containing these extensions will not displayed in the listSample security.json (ex: /storage/docs/app/laravel/security.json):
{ "roles": ["users"], "permissions": ["docs.show.versions"] }
route are hard-coded to the ServiceProvider file of the package.