Currently this package generates documentation while executing test cases, which has the following limitation:
- Should run test cases to generates documentation.
- These package has dependency on
phpunit, so either the generated documents should ships to source or need to install development dependency to generate docs in production during document generation.
- Document file is processed each time while running the test case.
Solution:
- a list of commands will define to generate the documentation
php artisan docs to generate the docs from scratch
php artisan docs tests/Feature/Example.test to generate the docs on based on Example.test
Logic:
Currently this package generates documentation while executing test cases, which has the following limitation:
phpunit, so either the generated documents should ships to source or need to install development dependency to generate docs in production during document generation.Solution:
php artisan docsto generate the docs from scratchphp artisan docs tests/Feature/Example.testto generate the docs on based on Example.testLogic: