i had this issue too.
just delete entire resources/docs and public/doc directory (The Directories it self).
then php artisan apidoc:generate
When do you encounter this error? Is this on your first ever run of the command? Are you upgrading from v3? What type of documentation is it set to?
No It was Not.
First I apidoc:generate Without any problem.
After a While i had a Git --revert and And Try to apidoc:generate again and The Problem Arises.
It seems it Faces Error When Directory Structure Exists.
deleting entire resources/docs and public/doc directory was my solution.
i had this issue too.
just delete entire resources/docs and public/doc directory (The Directories it self).
then php artisan apidoc:generate
Thanks you very much !!
I get this error when set 'type' => 'laravel' in my config file (config/apidoc.php).
'type' => 'laravel',
'laravel' => [
'autoload' => false, // also tried with `true`
'docs_url' => '/doc', // also changed this
'middleware' => [],
],
With 'type' => 'static' it is working.
Does anyone know why?
I figured out the issue. I didn't have the /resources/views directory. I created it and ran php artisan apidoc:generate
Most helpful comment
i had this issue too.
just delete entire resources/docs and public/doc directory (The Directories it self).
then php artisan apidoc:generate