mpociot / laravel-apidoc-generator

Laravel API Documentation Generator
https://beyondco.de/docs/laravel-apidoc-generator/
MIT License
3.43k stars 614 forks source link

Use absolute paths and make sure the public/docs/js and public/docs/css sub-folders exist #761

Open mikepsinn opened 4 years ago

mikepsinn commented 4 years ago

For some reason, my Laravel project always wants to use the tests folder as the base path no matter what I do. So I had to use absolute paths with base_path to make it work.

Also, I made is to that if you already have a public/docs folder, it won't skip the creation of the public/docs/js and public/docs/css subfolders.