Laravel-apidoc-generator: ErrorException : copy(resources/docs/js/all.js): failed to open stream: No such file or directory

Created on 22 Dec 2019  路  6Comments  路  Source: mpociot/laravel-apidoc-generator

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

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jaspur picture Jaspur  路  8Comments

shalvah picture shalvah  路  5Comments

yakabay picture yakabay  路  3Comments

saidatom picture saidatom  路  7Comments

codehimanshu picture codehimanshu  路  9Comments