Looking to hire Laravel developers? Try LaraJobs

multidoc-laravel maintained by negreanucalin

Last update
2021/11/24 16:04 (dev-master)
License
Links
Downloads
73

Comments
comments powered by Disqus

Laravel Multidoc

Not yet stable, in testing phase!

Laravel wrapper that uses the Multidoc parser and Multidoc viewer

Instalation

Just add "negreanucalin/multidoc-laravel": "^1.0" in your composer.json

Laravel configuration

  • Add the service provider and alias

    • Providers \MultidocLaravel\MultidocServiceProvider::class
    • Aliases 'MultidocLaravel'=>\Multidoc\Facades\MultidocLaravelFacade::class
  • 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
  • Test it

    • Go to: {{yourAppName}}/multidoc