negreanucalin/multidoc-laravel

0.1.9 2021-11-24 15:04 UTC

This package is auto-updated.

Last update: 2024-05-24 20:41:33 UTC


README

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