Laravel wrapper that uses the Multidoc parser and Multidoc viewer
Just add "negreanucalin/multidoc-laravel": "^1.0"
in your composer.json
-
Add the service provider and alias
- Providers
\MultidocLaravel\MultidocServiceProvider::class
- Aliases
'MultidocLaravel'=>\Multidoc\Facades\MultidocLaravelFacade::class
- Providers
-
Publish vendors Run:
php artisan vendor:publish --tag=multidoc
-
(SPA+Api integration)
Route::get('/{any}', function () { return ... })->where('any', '^(?!api|multidoc).*$');
-
Generate documentation
- Documentation folder is
documentation
inside the root of your application (check Multidoc parser ) - Run:
php artisan multidoc:generate
- Documentation folder is
-
Test it
- Go to:
{{yourAppName}}/multidoc
- Go to: