Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use artisan command to create new class #4

Open
jimtaylor123 opened this issue May 20, 2021 · 1 comment
Open

Can't use artisan command to create new class #4

jimtaylor123 opened this issue May 20, 2021 · 1 comment

Comments

@jimtaylor123
Copy link

When running php artisan command php artisan apidocs:endpoint SampleEndpoint I get the following error:

Call to undefined function Johnylemon\Apidocs\Console\Commands\stub()

  at vendor/johnylemon/laravel-apidocs/src/Console/Commands/Make.php:46
     42▕         // target path
     43▕         //
     44▕         $path = app_path("$dir/$class.php");
     45▕ 
  ➜  46▕         stub($this->stub(), $path, [
     47▕             'NAMESPACE' => $this->namespace($dir),
     48▕             'NAME' => $class,
     49▕         ]);
     50▕     }

      +13 vendor frames 
  14  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
@domainoverflow
Copy link

at vendor/johnylemon/laravel-apidocs/src/Console/Commands/Make.php at line 46
replace
stub
to
$this->stub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants