繁体   English   中英

laravel-graphql php artisan命令'无法打开输入文件:make:graphql:type'

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

我去过laravel项目文件夹。 当然,我可以运行其他php artisan命令。

这是我的命令行:

$ 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

我确定我是在laravel项目下进行的,其他工匠的命令也可以工作

l在composer composer7 require 'folklore/graphql'安装了laravel-graphql, composer7 require 'folklore/graphql'版本为1.10的composer7 require 'folklore/graphql'

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

php artisan make:graphql:type Meta

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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