简体   繁体   中英

laravel-graphql php artisan command 'Could not open input file: make:graphql:type'

l have been at the laravel project folder. of course, l can run other php artisan command.

Here is my command line:

$ php7 artisan
Laravel Framework 5.7.9

Usage:
  command [options] [arguments]
 ...

 make
  ....
  make:graphql:mutation  Create a new GraphQL mutation class
  make:graphql:query     Create a new GraphQL query class
  make:graphql:type      Create a new GraphQL type class
  ... // other command hide here

$ php7 make:graphql:type Meta
Could not open input file: make:graphql:type

l'm sure l was under the laravel project, and other artisan command could work

l installed laravel-graphql with composer composer7 require 'folklore/graphql' with version 1.10

您需要在输入中包含artisan命令

php artisan make:graphql:type Meta

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM